TakeOrderedAndProject [total_sales,i_manufact_id]
  WholeStageCodegen (19)
    HashAggregate [i_manufact_id,sum,isEmpty] [sum(total_sales),total_sales,sum,isEmpty]
      HashAggregate [i_manufact_id,total_sales] [sum,isEmpty,sum,isEmpty]
        InputAdapter
          Union
            WholeStageCodegen (6)
              HashAggregate [i_manufact_id,sum] [sum(UnscaledValue(ss_ext_sales_price)),total_sales,sum]
                InputAdapter
                  Exchange [i_manufact_id] #1
                    WholeStageCodegen (5)
                      HashAggregate [i_manufact_id,ss_ext_sales_price] [sum,sum]
                        Project [ss_ext_sales_price,i_manufact_id]
                          BroadcastHashJoin [ss_addr_sk,ca_address_sk]
                            Project [ss_addr_sk,ss_ext_sales_price,i_manufact_id]
                              BroadcastHashJoin [ss_item_sk,i_item_sk]
                                Project [ss_item_sk,ss_addr_sk,ss_ext_sales_price]
                                  BroadcastHashJoin [ss_sold_date_sk,d_date_sk]
                                    Filter [ss_addr_sk,ss_item_sk]
                                      ColumnarToRow
                                        InputAdapter
                                          Scan parquet spark_catalog.default.store_sales [ss_item_sk,ss_addr_sk,ss_ext_sales_price,ss_sold_date_sk]
                                            SubqueryBroadcast [d_date_sk] #1
                                              BroadcastExchange #2
                                                WholeStageCodegen (1)
                                                  Project [d_date_sk]
                                                    Filter [d_year,d_moy,d_date_sk]
                                                      ColumnarToRow
                                                        InputAdapter
                                                          Scan parquet spark_catalog.default.date_dim [d_date_sk,d_year,d_moy]
                                    InputAdapter
                                      ReusedExchange [d_date_sk] #2
                                InputAdapter
                                  BroadcastExchange #3
                                    WholeStageCodegen (3)
                                      BroadcastHashJoin [i_manufact_id,i_manufact_id]
                                        Filter [i_item_sk]
                                          ColumnarToRow
                                            InputAdapter
                                              Scan parquet spark_catalog.default.item [i_item_sk,i_manufact_id]
                                        InputAdapter
                                          BroadcastExchange #4
                                            WholeStageCodegen (2)
                                              Project [i_manufact_id]
                                                Filter [i_category]
                                                  ColumnarToRow
                                                    InputAdapter
                                                      Scan parquet spark_catalog.default.item [i_category,i_manufact_id]
                            InputAdapter
                              BroadcastExchange #5
                                WholeStageCodegen (4)
                                  Project [ca_address_sk]
                                    Filter [ca_gmt_offset,ca_address_sk]
                                      ColumnarToRow
                                        InputAdapter
                                          Scan parquet spark_catalog.default.customer_address [ca_address_sk,ca_gmt_offset]
            WholeStageCodegen (12)
              HashAggregate [i_manufact_id,sum] [sum(UnscaledValue(cs_ext_sales_price)),total_sales,sum]
                InputAdapter
                  Exchange [i_manufact_id] #6
                    WholeStageCodegen (11)
                      HashAggregate [i_manufact_id,cs_ext_sales_price] [sum,sum]
                        Project [cs_ext_sales_price,i_manufact_id]
                          BroadcastHashJoin [cs_bill_addr_sk,ca_address_sk]
                            Project [cs_bill_addr_sk,cs_ext_sales_price,i_manufact_id]
                              BroadcastHashJoin [cs_item_sk,i_item_sk]
                                Project [cs_bill_addr_sk,cs_item_sk,cs_ext_sales_price]
                                  BroadcastHashJoin [cs_sold_date_sk,d_date_sk]
                                    Filter [cs_bill_addr_sk,cs_item_sk]
                                      ColumnarToRow
                                        InputAdapter
                                          Scan parquet spark_catalog.default.catalog_sales [cs_bill_addr_sk,cs_item_sk,cs_ext_sales_price,cs_sold_date_sk]
                                            ReusedSubquery [d_date_sk] #1
                                    InputAdapter
                                      ReusedExchange [d_date_sk] #2
                                InputAdapter
                                  ReusedExchange [i_item_sk,i_manufact_id] #3
                            InputAdapter
                              ReusedExchange [ca_address_sk] #5
            WholeStageCodegen (18)
              HashAggregate [i_manufact_id,sum] [sum(UnscaledValue(ws_ext_sales_price)),total_sales,sum]
                InputAdapter
                  Exchange [i_manufact_id] #7
                    WholeStageCodegen (17)
                      HashAggregate [i_manufact_id,ws_ext_sales_price] [sum,sum]
                        Project [ws_ext_sales_price,i_manufact_id]
                          BroadcastHashJoin [ws_bill_addr_sk,ca_address_sk]
                            Project [ws_bill_addr_sk,ws_ext_sales_price,i_manufact_id]
                              BroadcastHashJoin [ws_item_sk,i_item_sk]
                                Project [ws_item_sk,ws_bill_addr_sk,ws_ext_sales_price]
                                  BroadcastHashJoin [ws_sold_date_sk,d_date_sk]
                                    Filter [ws_bill_addr_sk,ws_item_sk]
                                      ColumnarToRow
                                        InputAdapter
                                          Scan parquet spark_catalog.default.web_sales [ws_item_sk,ws_bill_addr_sk,ws_ext_sales_price,ws_sold_date_sk]
                                            ReusedSubquery [d_date_sk] #1
                                    InputAdapter
                                      ReusedExchange [d_date_sk] #2
                                InputAdapter
                                  ReusedExchange [i_item_sk,i_manufact_id] #3
                            InputAdapter
                              ReusedExchange [ca_address_sk] #5
