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 (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(1),avg(cast(cd_dep_count as bigint)),max(cd_dep_count),sum(cast(cd_dep_count as bigint)),avg(cast(cd_dep_employed_count as bigint)),max(cd_dep_employed_count),sum(cast(cd_dep_employed_count as bigint)),avg(cast(cd_dep_college_count as bigint)),max(cd_dep_college_count),sum(cast(cd_dep_college_count as bigint)),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 (19)
            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 (16)
                      Sort [c_current_cdemo_sk]
                        InputAdapter
                          Exchange [c_current_cdemo_sk] #2
                            WholeStageCodegen (15)
                              Project [c_current_cdemo_sk,ca_state]
                                SortMergeJoin [c_current_addr_sk,ca_address_sk]
                                  InputAdapter
                                    WholeStageCodegen (12)
                                      Sort [c_current_addr_sk]
                                        InputAdapter
                                          Exchange [c_current_addr_sk] #3
                                            WholeStageCodegen (11)
                                              Project [c_current_cdemo_sk,c_current_addr_sk]
                                                InputAdapter
                                                  SortMergeJoin [c_customer_sk,customsk]
                                                    SortMergeJoin [c_customer_sk,ss_customer_sk]
                                                      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 default.customer [c_customer_sk,c_current_cdemo_sk,c_current_addr_sk]
                                                      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]
                                                                    Filter [ss_sold_date_sk]
                                                                      ColumnarToRow
                                                                        InputAdapter
                                                                          Scan parquet default.store_sales [ss_sold_date_sk,ss_customer_sk]
                                                                    InputAdapter
                                                                      BroadcastExchange #6
                                                                        WholeStageCodegen (3)
                                                                          Project [d_date_sk]
                                                                            Filter [d_year,d_qoy,d_date_sk]
                                                                              ColumnarToRow
                                                                                InputAdapter
                                                                                  Scan parquet default.date_dim [d_date_sk,d_year,d_qoy]
                                                    WholeStageCodegen (10)
                                                      Sort [customsk]
                                                        InputAdapter
                                                          Exchange [customsk] #7
                                                            Union
                                                              WholeStageCodegen (7)
                                                                Project [ws_bill_customer_sk]
                                                                  BroadcastHashJoin [ws_sold_date_sk,d_date_sk]
                                                                    Filter [ws_sold_date_sk]
                                                                      ColumnarToRow
                                                                        InputAdapter
                                                                          Scan parquet default.web_sales [ws_sold_date_sk,ws_bill_customer_sk]
                                                                    InputAdapter
                                                                      ReusedExchange [d_date_sk] #6
                                                              WholeStageCodegen (9)
                                                                Project [cs_ship_customer_sk]
                                                                  BroadcastHashJoin [cs_sold_date_sk,d_date_sk]
                                                                    Filter [cs_sold_date_sk]
                                                                      ColumnarToRow
                                                                        InputAdapter
                                                                          Scan parquet default.catalog_sales [cs_sold_date_sk,cs_ship_customer_sk]
                                                                    InputAdapter
                                                                      ReusedExchange [d_date_sk] #6
                                  InputAdapter
                                    WholeStageCodegen (14)
                                      Sort [ca_address_sk]
                                        InputAdapter
                                          Exchange [ca_address_sk] #8
                                            WholeStageCodegen (13)
                                              Filter [ca_address_sk]
                                                ColumnarToRow
                                                  InputAdapter
                                                    Scan parquet default.customer_address [ca_address_sk,ca_state]
                  InputAdapter
                    WholeStageCodegen (18)
                      Sort [cd_demo_sk]
                        InputAdapter
                          Exchange [cd_demo_sk] #9
                            WholeStageCodegen (17)
                              Filter [cd_demo_sk]
                                ColumnarToRow
                                  InputAdapter
                                    Scan parquet default.customer_demographics [cd_demo_sk,cd_gender,cd_marital_status,cd_dep_count,cd_dep_employed_count,cd_dep_college_count]
