WholeStageCodegen (15)
  Project [promotions,total]
    BroadcastNestedLoopJoin
      HashAggregate [sum] [sum(UnscaledValue(ss_ext_sales_price)),promotions,sum]
        InputAdapter
          Exchange #1
            WholeStageCodegen (7)
              HashAggregate [ss_ext_sales_price] [sum,sum]
                Project [ss_ext_sales_price]
                  BroadcastHashJoin [ss_customer_sk,c_customer_sk]
                    Project [ss_customer_sk,ss_ext_sales_price]
                      BroadcastHashJoin [ss_store_sk,s_store_sk]
                        Project [ss_customer_sk,ss_store_sk,ss_ext_sales_price]
                          BroadcastHashJoin [ss_promo_sk,p_promo_sk]
                            Project [ss_customer_sk,ss_store_sk,ss_promo_sk,ss_ext_sales_price]
                              BroadcastHashJoin [ss_item_sk,i_item_sk]
                                Project [ss_item_sk,ss_customer_sk,ss_store_sk,ss_promo_sk,ss_ext_sales_price]
                                  BroadcastHashJoin [ss_sold_date_sk,d_date_sk]
                                    Filter [ss_store_sk,ss_promo_sk,ss_customer_sk,ss_item_sk]
                                      ColumnarToRow
                                        InputAdapter
                                          Scan parquet spark_catalog.default.store_sales [ss_item_sk,ss_customer_sk,ss_store_sk,ss_promo_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 (2)
                                      Project [i_item_sk]
                                        Filter [i_category,i_item_sk]
                                          ColumnarToRow
                                            InputAdapter
                                              Scan parquet spark_catalog.default.item [i_item_sk,i_category]
                            InputAdapter
                              BroadcastExchange #4
                                WholeStageCodegen (3)
                                  Project [p_promo_sk]
                                    Filter [p_channel_dmail,p_channel_email,p_channel_tv,p_promo_sk]
                                      ColumnarToRow
                                        InputAdapter
                                          Scan parquet spark_catalog.default.promotion [p_promo_sk,p_channel_dmail,p_channel_email,p_channel_tv]
                        InputAdapter
                          BroadcastExchange #5
                            WholeStageCodegen (4)
                              Project [s_store_sk]
                                Filter [s_gmt_offset,s_store_sk]
                                  ColumnarToRow
                                    InputAdapter
                                      Scan parquet spark_catalog.default.store [s_store_sk,s_gmt_offset]
                    InputAdapter
                      BroadcastExchange #6
                        WholeStageCodegen (6)
                          Project [c_customer_sk]
                            BroadcastHashJoin [c_current_addr_sk,ca_address_sk]
                              Filter [c_customer_sk,c_current_addr_sk]
                                ColumnarToRow
                                  InputAdapter
                                    Scan parquet spark_catalog.default.customer [c_customer_sk,c_current_addr_sk]
                              InputAdapter
                                BroadcastExchange #7
                                  WholeStageCodegen (5)
                                    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]
      InputAdapter
        BroadcastExchange #8
          WholeStageCodegen (14)
            HashAggregate [sum] [sum(UnscaledValue(ss_ext_sales_price)),total,sum]
              InputAdapter
                Exchange #9
                  WholeStageCodegen (13)
                    HashAggregate [ss_ext_sales_price] [sum,sum]
                      Project [ss_ext_sales_price]
                        BroadcastHashJoin [ss_customer_sk,c_customer_sk]
                          Project [ss_customer_sk,ss_ext_sales_price]
                            BroadcastHashJoin [ss_store_sk,s_store_sk]
                              Project [ss_customer_sk,ss_store_sk,ss_ext_sales_price]
                                BroadcastHashJoin [ss_item_sk,i_item_sk]
                                  Project [ss_item_sk,ss_customer_sk,ss_store_sk,ss_ext_sales_price]
                                    BroadcastHashJoin [ss_sold_date_sk,d_date_sk]
                                      Filter [ss_store_sk,ss_customer_sk,ss_item_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]
                                              ReusedSubquery [d_date_sk] #1
                                      InputAdapter
                                        ReusedExchange [d_date_sk] #2
                                  InputAdapter
                                    ReusedExchange [i_item_sk] #3
                              InputAdapter
                                ReusedExchange [s_store_sk] #5
                          InputAdapter
                            ReusedExchange [c_customer_sk] #6
