TakeOrderedAndProject [c_last_name,ss_ticket_number,c_first_name,ca_city,bought_city,extended_price,extended_tax,list_price]
  WholeStageCodegen (11)
    Project [c_last_name,c_first_name,ca_city,bought_city,ss_ticket_number,extended_price,extended_tax,list_price]
      SortMergeJoin [c_current_addr_sk,ca_address_sk,ca_city,bought_city]
        InputAdapter
          WholeStageCodegen (8)
            Sort [c_current_addr_sk]
              InputAdapter
                Exchange [c_current_addr_sk] #1
                  WholeStageCodegen (7)
                    Project [ss_ticket_number,bought_city,extended_price,list_price,extended_tax,c_current_addr_sk,c_first_name,c_last_name]
                      BroadcastHashJoin [ss_customer_sk,c_customer_sk]
                        InputAdapter
                          BroadcastExchange #2
                            WholeStageCodegen (6)
                              HashAggregate [ss_ticket_number,ss_customer_sk,ss_addr_sk,ca_city,sum,sum,sum] [sum(UnscaledValue(ss_ext_sales_price)),sum(UnscaledValue(ss_ext_list_price)),sum(UnscaledValue(ss_ext_tax)),bought_city,extended_price,list_price,extended_tax,sum,sum,sum]
                                InputAdapter
                                  Exchange [ss_ticket_number,ss_customer_sk,ss_addr_sk,ca_city] #3
                                    WholeStageCodegen (5)
                                      HashAggregate [ss_ticket_number,ss_customer_sk,ss_addr_sk,ca_city,ss_ext_sales_price,ss_ext_list_price,ss_ext_tax] [sum,sum,sum,sum,sum,sum]
                                        Project [ss_customer_sk,ss_addr_sk,ss_ticket_number,ss_ext_sales_price,ss_ext_list_price,ss_ext_tax,ca_city]
                                          BroadcastHashJoin [ss_addr_sk,ca_address_sk]
                                            InputAdapter
                                              BroadcastExchange #4
                                                WholeStageCodegen (4)
                                                  Project [ss_customer_sk,ss_addr_sk,ss_ticket_number,ss_ext_sales_price,ss_ext_list_price,ss_ext_tax]
                                                    BroadcastHashJoin [ss_hdemo_sk,hd_demo_sk]
                                                      Project [ss_customer_sk,ss_hdemo_sk,ss_addr_sk,ss_ticket_number,ss_ext_sales_price,ss_ext_list_price,ss_ext_tax]
                                                        BroadcastHashJoin [ss_store_sk,s_store_sk]
                                                          Project [ss_customer_sk,ss_hdemo_sk,ss_addr_sk,ss_store_sk,ss_ticket_number,ss_ext_sales_price,ss_ext_list_price,ss_ext_tax]
                                                            BroadcastHashJoin [ss_sold_date_sk,d_date_sk]
                                                              Filter [ss_store_sk,ss_hdemo_sk,ss_addr_sk,ss_customer_sk]
                                                                ColumnarToRow
                                                                  InputAdapter
                                                                    Scan parquet spark_catalog.default.store_sales [ss_customer_sk,ss_hdemo_sk,ss_addr_sk,ss_store_sk,ss_ticket_number,ss_ext_sales_price,ss_ext_list_price,ss_ext_tax,ss_sold_date_sk]
                                                                      SubqueryBroadcast [d_date_sk] #1
                                                                        BroadcastExchange #5
                                                                          WholeStageCodegen (1)
                                                                            Project [d_date_sk]
                                                                              Filter [d_dom,d_year,d_date_sk]
                                                                                ColumnarToRow
                                                                                  InputAdapter
                                                                                    Scan parquet spark_catalog.default.date_dim [d_date_sk,d_year,d_dom]
                                                              InputAdapter
                                                                ReusedExchange [d_date_sk] #5
                                                          InputAdapter
                                                            BroadcastExchange #6
                                                              WholeStageCodegen (2)
                                                                Project [s_store_sk]
                                                                  Filter [s_city,s_store_sk]
                                                                    ColumnarToRow
                                                                      InputAdapter
                                                                        Scan parquet spark_catalog.default.store [s_store_sk,s_city]
                                                      InputAdapter
                                                        BroadcastExchange #7
                                                          WholeStageCodegen (3)
                                                            Project [hd_demo_sk]
                                                              Filter [hd_dep_count,hd_vehicle_count,hd_demo_sk]
                                                                ColumnarToRow
                                                                  InputAdapter
                                                                    Scan parquet spark_catalog.default.household_demographics [hd_demo_sk,hd_dep_count,hd_vehicle_count]
                                            Filter [ca_address_sk,ca_city]
                                              ColumnarToRow
                                                InputAdapter
                                                  Scan parquet spark_catalog.default.customer_address [ca_address_sk,ca_city]
                        Filter [c_customer_sk,c_current_addr_sk]
                          ColumnarToRow
                            InputAdapter
                              Scan parquet spark_catalog.default.customer [c_customer_sk,c_current_addr_sk,c_first_name,c_last_name]
        InputAdapter
          WholeStageCodegen (10)
            Sort [ca_address_sk]
              InputAdapter
                Exchange [ca_address_sk] #8
                  WholeStageCodegen (9)
                    Filter [ca_address_sk,ca_city]
                      ColumnarToRow
                        InputAdapter
                          Scan parquet spark_catalog.default.customer_address [ca_address_sk,ca_city]
