TakeOrderedAndProject [s_store_name,i_item_desc,revenue,i_current_price,i_wholesale_cost,i_brand]
  WholeStageCodegen (9)
    Project [s_store_name,i_item_desc,revenue,i_current_price,i_wholesale_cost,i_brand]
      BroadcastHashJoin [ss_item_sk,i_item_sk]
        InputAdapter
          BroadcastExchange #1
            WholeStageCodegen (8)
              Project [ss_item_sk,revenue,s_store_name]
                BroadcastHashJoin [ss_store_sk,s_store_sk]
                  InputAdapter
                    BroadcastExchange #2
                      WholeStageCodegen (7)
                        Project [ss_store_sk,ss_item_sk,revenue]
                          BroadcastHashJoin [ss_store_sk,ss_store_sk,revenue,ave]
                            Filter [revenue]
                              HashAggregate [ss_store_sk,ss_item_sk,sum] [sum(UnscaledValue(ss_sales_price)),revenue,sum]
                                InputAdapter
                                  Exchange [ss_store_sk,ss_item_sk] #3
                                    WholeStageCodegen (2)
                                      HashAggregate [ss_store_sk,ss_item_sk,ss_sales_price] [sum,sum]
                                        Project [ss_item_sk,ss_store_sk,ss_sales_price]
                                          BroadcastHashJoin [ss_sold_date_sk,d_date_sk]
                                            Filter [ss_store_sk,ss_item_sk]
                                              ColumnarToRow
                                                InputAdapter
                                                  Scan parquet spark_catalog.default.store_sales [ss_item_sk,ss_store_sk,ss_sales_price,ss_sold_date_sk]
                                                    SubqueryBroadcast [d_date_sk] #1
                                                      BroadcastExchange #4
                                                        WholeStageCodegen (1)
                                                          Project [d_date_sk]
                                                            Filter [d_month_seq,d_date_sk]
                                                              ColumnarToRow
                                                                InputAdapter
                                                                  Scan parquet spark_catalog.default.date_dim [d_date_sk,d_month_seq]
                                            InputAdapter
                                              ReusedExchange [d_date_sk] #4
                            InputAdapter
                              BroadcastExchange #5
                                WholeStageCodegen (6)
                                  Filter [ave]
                                    HashAggregate [ss_store_sk,sum,count] [avg(revenue),ave,sum,count]
                                      InputAdapter
                                        Exchange [ss_store_sk] #6
                                          WholeStageCodegen (5)
                                            HashAggregate [ss_store_sk,revenue] [sum,count,sum,count]
                                              HashAggregate [ss_store_sk,ss_item_sk,sum] [sum(UnscaledValue(ss_sales_price)),revenue,sum]
                                                InputAdapter
                                                  Exchange [ss_store_sk,ss_item_sk] #7
                                                    WholeStageCodegen (4)
                                                      HashAggregate [ss_store_sk,ss_item_sk,ss_sales_price] [sum,sum]
                                                        Project [ss_item_sk,ss_store_sk,ss_sales_price]
                                                          BroadcastHashJoin [ss_sold_date_sk,d_date_sk]
                                                            Filter [ss_store_sk]
                                                              ColumnarToRow
                                                                InputAdapter
                                                                  Scan parquet spark_catalog.default.store_sales [ss_item_sk,ss_store_sk,ss_sales_price,ss_sold_date_sk]
                                                                    ReusedSubquery [d_date_sk] #1
                                                            InputAdapter
                                                              ReusedExchange [d_date_sk] #4
                  Filter [s_store_sk]
                    ColumnarToRow
                      InputAdapter
                        Scan parquet spark_catalog.default.store [s_store_sk,s_store_name]
        Filter [i_item_sk]
          ColumnarToRow
            InputAdapter
              Scan parquet spark_catalog.default.item [i_item_sk,i_item_desc,i_current_price,i_wholesale_cost,i_brand]
