WholeStageCodegen (7)
  Project [i_item_desc,i_category,i_class,i_current_price,itemrevenue,revenueratio]
    Sort [i_category,i_class,i_item_id,i_item_desc,revenueratio]
      InputAdapter
        Exchange [i_category,i_class,i_item_id,i_item_desc,revenueratio] #1
          WholeStageCodegen (6)
            Project [i_item_desc,i_category,i_class,i_current_price,itemrevenue,_w0,_we0,i_item_id]
              InputAdapter
                Window [_w0,i_class]
                  WholeStageCodegen (5)
                    Sort [i_class]
                      InputAdapter
                        Exchange [i_class] #2
                          WholeStageCodegen (4)
                            HashAggregate [i_item_id,i_item_desc,i_category,i_class,i_current_price,sum] [sum(UnscaledValue(ss_ext_sales_price)),itemrevenue,_w0,sum]
                              InputAdapter
                                Exchange [i_item_id,i_item_desc,i_category,i_class,i_current_price] #3
                                  WholeStageCodegen (3)
                                    HashAggregate [i_item_id,i_item_desc,i_category,i_class,i_current_price,ss_ext_sales_price] [sum,sum]
                                      Project [ss_ext_sales_price,i_item_id,i_item_desc,i_current_price,i_class,i_category]
                                        BroadcastHashJoin [ss_sold_date_sk,d_date_sk]
                                          Project [ss_ext_sales_price,ss_sold_date_sk,i_item_id,i_item_desc,i_current_price,i_class,i_category]
                                            BroadcastHashJoin [ss_item_sk,i_item_sk]
                                              Filter [ss_item_sk]
                                                ColumnarToRow
                                                  InputAdapter
                                                    Scan parquet spark_catalog.default.store_sales [ss_item_sk,ss_ext_sales_price,ss_sold_date_sk]
                                                      SubqueryBroadcast [d_date_sk] #1
                                                        BroadcastExchange #4
                                                          WholeStageCodegen (1)
                                                            Project [d_date_sk]
                                                              Filter [d_date,d_date_sk]
                                                                ColumnarToRow
                                                                  InputAdapter
                                                                    Scan parquet spark_catalog.default.date_dim [d_date_sk,d_date]
                                              InputAdapter
                                                BroadcastExchange #5
                                                  WholeStageCodegen (1)
                                                    Filter [i_category,i_item_sk]
                                                      ColumnarToRow
                                                        InputAdapter
                                                          Scan parquet spark_catalog.default.item [i_item_sk,i_item_id,i_item_desc,i_current_price,i_class,i_category]
                                          InputAdapter
                                            ReusedExchange [d_date_sk] #4
