TakeOrderedAndProject [cd_gender,cd_marital_status,cd_education_status,cd_purchase_estimate,cd_credit_rating,cnt1,cnt2,cnt3]
  WholeStageCodegen (6)
    HashAggregate [cd_gender,cd_marital_status,cd_education_status,cd_purchase_estimate,cd_credit_rating,count] [count(1),cnt1,cnt2,cnt3,count]
      InputAdapter
        Exchange [cd_gender,cd_marital_status,cd_education_status,cd_purchase_estimate,cd_credit_rating] #1
          WholeStageCodegen (5)
            HashAggregate [cd_gender,cd_marital_status,cd_education_status,cd_purchase_estimate,cd_credit_rating] [count,count]
              Project [cd_gender,cd_marital_status,cd_education_status,cd_purchase_estimate,cd_credit_rating]
                BroadcastHashJoin [c_current_cdemo_sk,cd_demo_sk]
                  Project [c_current_cdemo_sk]
                    BroadcastHashJoin [c_current_addr_sk,ca_address_sk]
                      Project [c_current_cdemo_sk,c_current_addr_sk]
                        BroadcastHashJoin [c_customer_sk,cs_ship_customer_sk]
                          BroadcastHashJoin [c_customer_sk,ws_bill_customer_sk]
                            ColumnarToRow
                              InputAdapter
                                CometBroadcastHashJoin [c_customer_sk,c_current_cdemo_sk,c_current_addr_sk,ss_customer_sk]
                                  CometFilter [c_customer_sk,c_current_cdemo_sk,c_current_addr_sk]
                                    CometNativeScan: `spark_catalog`.`default`.`customer` [c_customer_sk,c_current_cdemo_sk,c_current_addr_sk]
                                  CometBroadcastExchange [ss_customer_sk] #2
                                    CometProject [ss_customer_sk]
                                      CometBroadcastHashJoin [ss_customer_sk,ss_sold_date_sk,d_date_sk]
                                        CometNativeScan: `spark_catalog`.`default`.`store_sales` [ss_customer_sk,ss_sold_date_sk]
                                        CometBroadcastExchange [d_date_sk] #3
                                          CometProject [d_date_sk]
                                            CometFilter [d_date_sk,d_year,d_moy]
                                              CometNativeScan: `spark_catalog`.`default`.`date_dim` [d_date_sk,d_year,d_moy]
                            InputAdapter
                              BroadcastExchange #4
                                WholeStageCodegen (1)
                                  ColumnarToRow
                                    InputAdapter
                                      CometProject [ws_bill_customer_sk]
                                        CometBroadcastHashJoin [ws_bill_customer_sk,ws_sold_date_sk,d_date_sk]
                                          CometNativeScan: `spark_catalog`.`default`.`web_sales` [ws_bill_customer_sk,ws_sold_date_sk]
                                          ReusedExchange [d_date_sk] #3
                          InputAdapter
                            ReusedExchange [cs_ship_customer_sk] #4
                      InputAdapter
                        BroadcastExchange #5
                          WholeStageCodegen (3)
                            ColumnarToRow
                              InputAdapter
                                CometProject [ca_address_sk]
                                  CometFilter [ca_address_sk,ca_state]
                                    CometNativeScan: `spark_catalog`.`default`.`customer_address` [ca_address_sk,ca_state]
                  InputAdapter
                    BroadcastExchange #6
                      WholeStageCodegen (4)
                        ColumnarToRow
                          InputAdapter
                            CometFilter [cd_demo_sk,cd_gender,cd_marital_status,cd_education_status,cd_purchase_estimate,cd_credit_rating]
                              CometNativeScan: `spark_catalog`.`default`.`customer_demographics` [cd_demo_sk,cd_gender,cd_marital_status,cd_education_status,cd_purchase_estimate,cd_credit_rating]
