TakeOrderedAndProject [ca_state,cd_gender,cd_marital_status,cd_dep_count,cd_dep_employed_count,cd_dep_college_count,cnt1,avg(cd_dep_count),max(cd_dep_count),sum(cd_dep_count),cnt2,avg(cd_dep_employed_count),max(cd_dep_employed_count),sum(cd_dep_employed_count),cnt3,avg(cd_dep_college_count),max(cd_dep_college_count),sum(cd_dep_college_count)]
  WholeStageCodegen (21)
    HashAggregate [ca_state,cd_gender,cd_marital_status,cd_dep_count,cd_dep_employed_count,cd_dep_college_count,count,sum,count,max,sum,sum,count,max,sum,sum,count,max,sum] [count(1),avg(cd_dep_count),max(cd_dep_count),sum(cd_dep_count),avg(cd_dep_employed_count),max(cd_dep_employed_count),sum(cd_dep_employed_count),avg(cd_dep_college_count),max(cd_dep_college_count),sum(cd_dep_college_count),cnt1,avg(cd_dep_count),max(cd_dep_count),sum(cd_dep_count),cnt2,avg(cd_dep_employed_count),max(cd_dep_employed_count),sum(cd_dep_employed_count),cnt3,avg(cd_dep_college_count),max(cd_dep_college_count),sum(cd_dep_college_count),count,sum,count,max,sum,sum,count,max,sum,sum,count,max,sum]
      InputAdapter
        Exchange [ca_state,cd_gender,cd_marital_status,cd_dep_count,cd_dep_employed_count,cd_dep_college_count] #1
          WholeStageCodegen (20)
            HashAggregate [ca_state,cd_gender,cd_marital_status,cd_dep_count,cd_dep_employed_count,cd_dep_college_count] [count,sum,count,max,sum,sum,count,max,sum,sum,count,max,sum,count,sum,count,max,sum,sum,count,max,sum,sum,count,max,sum]
              Project [ca_state,cd_gender,cd_marital_status,cd_dep_count,cd_dep_employed_count,cd_dep_college_count]
                SortMergeJoin [c_current_cdemo_sk,cd_demo_sk]
                  InputAdapter
                    WholeStageCodegen (17)
                      Sort [c_current_cdemo_sk]
                        InputAdapter
                          Exchange [c_current_cdemo_sk] #2
                            WholeStageCodegen (16)
                              Project [c_current_cdemo_sk,ca_state]
                                SortMergeJoin [c_current_addr_sk,ca_address_sk]
                                  InputAdapter
                                    WholeStageCodegen (13)
                                      Sort [c_current_addr_sk]
                                        InputAdapter
                                          Exchange [c_current_addr_sk] #3
                                            WholeStageCodegen (12)
                                              Project [c_current_cdemo_sk,c_current_addr_sk]
                                                SortMergeJoin [c_customer_sk,customsk]
                                                  InputAdapter
                                                    WholeStageCodegen (6)
                                                      SortMergeJoin [c_customer_sk,ss_customer_sk]
                                                        InputAdapter
                                                          WholeStageCodegen (2)
                                                            Sort [c_customer_sk]
                                                              InputAdapter
                                                                Exchange [c_customer_sk] #4
                                                                  WholeStageCodegen (1)
                                                                    Filter [c_current_addr_sk,c_current_cdemo_sk]
                                                                      ColumnarToRow
                                                                        InputAdapter
                                                                          Scan parquet spark_catalog.default.customer [c_customer_sk,c_current_cdemo_sk,c_current_addr_sk]
                                                        InputAdapter
                                                          WholeStageCodegen (5)
                                                            Sort [ss_customer_sk]
                                                              InputAdapter
                                                                Exchange [ss_customer_sk] #5
                                                                  WholeStageCodegen (4)
                                                                    Project [ss_customer_sk]
                                                                      BroadcastHashJoin [ss_sold_date_sk,d_date_sk]
                                                                        ColumnarToRow
                                                                          InputAdapter
                                                                            Scan parquet spark_catalog.default.store_sales [ss_customer_sk,ss_sold_date_sk]
                                                                              SubqueryBroadcast [d_date_sk] #1
                                                                                BroadcastExchange #6
                                                                                  WholeStageCodegen (1)
                                                                                    Project [d_date_sk]
                                                                                      Filter [d_year,d_qoy,d_date_sk]
                                                                                        ColumnarToRow
                                                                                          InputAdapter
                                                                                            Scan parquet spark_catalog.default.date_dim [d_date_sk,d_year,d_qoy]
                                                                        InputAdapter
                                                                          ReusedExchange [d_date_sk] #6
                                                  InputAdapter
                                                    WholeStageCodegen (11)
                                                      Sort [customsk]
                                                        InputAdapter
                                                          Exchange [customsk] #7
                                                            Union
                                                              WholeStageCodegen (8)
                                                                Project [ws_bill_customer_sk]
                                                                  BroadcastHashJoin [ws_sold_date_sk,d_date_sk]
                                                                    ColumnarToRow
                                                                      InputAdapter
                                                                        Scan parquet spark_catalog.default.web_sales [ws_bill_customer_sk,ws_sold_date_sk]
                                                                          ReusedSubquery [d_date_sk] #1
                                                                    InputAdapter
                                                                      ReusedExchange [d_date_sk] #6
                                                              WholeStageCodegen (10)
                                                                Project [cs_ship_customer_sk]
                                                                  BroadcastHashJoin [cs_sold_date_sk,d_date_sk]
                                                                    ColumnarToRow
                                                                      InputAdapter
                                                                        Scan parquet spark_catalog.default.catalog_sales [cs_ship_customer_sk,cs_sold_date_sk]
                                                                          ReusedSubquery [d_date_sk] #1
                                                                    InputAdapter
                                                                      ReusedExchange [d_date_sk] #6
                                  InputAdapter
                                    WholeStageCodegen (15)
                                      Sort [ca_address_sk]
                                        InputAdapter
                                          Exchange [ca_address_sk] #8
                                            WholeStageCodegen (14)
                                              Filter [ca_address_sk]
                                                ColumnarToRow
                                                  InputAdapter
                                                    Scan parquet spark_catalog.default.customer_address [ca_address_sk,ca_state]
                  InputAdapter
                    WholeStageCodegen (19)
                      Sort [cd_demo_sk]
                        InputAdapter
                          Exchange [cd_demo_sk] #9
                            WholeStageCodegen (18)
                              Filter [cd_demo_sk]
                                ColumnarToRow
                                  InputAdapter
                                    Scan parquet spark_catalog.default.customer_demographics [cd_demo_sk,cd_gender,cd_marital_status,cd_dep_count,cd_dep_employed_count,cd_dep_college_count]
