TakeOrderedAndProject [ext_price,brand,brand_id,i_manufact_id,i_manufact]
  WholeStageCodegen (13)
    HashAggregate [i_brand,i_brand_id,i_manufact_id,i_manufact,sum] [sum(UnscaledValue(ss_ext_sales_price)),brand_id,brand,ext_price,sum]
      InputAdapter
        Exchange [i_brand,i_brand_id,i_manufact_id,i_manufact] #1
          WholeStageCodegen (12)
            HashAggregate [i_brand,i_brand_id,i_manufact_id,i_manufact,ss_ext_sales_price] [sum,sum]
              Project [ss_ext_sales_price,i_brand_id,i_brand,i_manufact_id,i_manufact]
                SortMergeJoin [ss_customer_sk,c_customer_sk,ca_zip,s_zip]
                  InputAdapter
                    WholeStageCodegen (5)
                      Sort [ss_customer_sk]
                        InputAdapter
                          Exchange [ss_customer_sk] #2
                            WholeStageCodegen (4)
                              Project [ss_customer_sk,ss_ext_sales_price,i_brand_id,i_brand,i_manufact_id,i_manufact,s_zip]
                                BroadcastHashJoin [ss_store_sk,s_store_sk]
                                  Project [ss_customer_sk,ss_store_sk,ss_ext_sales_price,i_brand_id,i_brand,i_manufact_id,i_manufact]
                                    BroadcastHashJoin [ss_sold_date_sk,d_date_sk]
                                      Project [ss_customer_sk,ss_store_sk,ss_ext_sales_price,ss_sold_date_sk,i_brand_id,i_brand,i_manufact_id,i_manufact]
                                        BroadcastHashJoin [ss_item_sk,i_item_sk]
                                          Filter [ss_item_sk,ss_customer_sk,ss_store_sk]
                                            ColumnarToRow
                                              InputAdapter
                                                Scan parquet spark_catalog.default.store_sales [ss_item_sk,ss_customer_sk,ss_store_sk,ss_ext_sales_price,ss_sold_date_sk]
                                                  SubqueryBroadcast [d_date_sk] #1
                                                    BroadcastExchange #3
                                                      WholeStageCodegen (1)
                                                        Project [d_date_sk]
                                                          Filter [d_moy,d_year,d_date_sk]
                                                            ColumnarToRow
                                                              InputAdapter
                                                                Scan parquet spark_catalog.default.date_dim [d_date_sk,d_year,d_moy]
                                          InputAdapter
                                            BroadcastExchange #4
                                              WholeStageCodegen (1)
                                                Project [i_item_sk,i_brand_id,i_brand,i_manufact_id,i_manufact]
                                                  Filter [i_manager_id,i_item_sk]
                                                    ColumnarToRow
                                                      InputAdapter
                                                        Scan parquet spark_catalog.default.item [i_item_sk,i_brand_id,i_brand,i_manufact_id,i_manufact,i_manager_id]
                                      InputAdapter
                                        ReusedExchange [d_date_sk] #3
                                  InputAdapter
                                    BroadcastExchange #5
                                      WholeStageCodegen (3)
                                        Filter [s_zip,s_store_sk]
                                          ColumnarToRow
                                            InputAdapter
                                              Scan parquet spark_catalog.default.store [s_store_sk,s_zip]
                  InputAdapter
                    WholeStageCodegen (11)
                      Sort [c_customer_sk]
                        InputAdapter
                          Exchange [c_customer_sk] #6
                            WholeStageCodegen (10)
                              Project [c_customer_sk,ca_zip]
                                SortMergeJoin [c_current_addr_sk,ca_address_sk]
                                  InputAdapter
                                    WholeStageCodegen (7)
                                      Sort [c_current_addr_sk]
                                        InputAdapter
                                          Exchange [c_current_addr_sk] #7
                                            WholeStageCodegen (6)
                                              Filter [c_customer_sk,c_current_addr_sk]
                                                ColumnarToRow
                                                  InputAdapter
                                                    Scan parquet spark_catalog.default.customer [c_customer_sk,c_current_addr_sk]
                                  InputAdapter
                                    WholeStageCodegen (9)
                                      Sort [ca_address_sk]
                                        InputAdapter
                                          Exchange [ca_address_sk] #8
                                            WholeStageCodegen (8)
                                              Filter [ca_address_sk,ca_zip]
                                                ColumnarToRow
                                                  InputAdapter
                                                    Scan parquet spark_catalog.default.customer_address [ca_address_sk,ca_zip]
