WholeStageCodegen (9)
  Sort [Returns_Loss]
    InputAdapter
      Exchange [Returns_Loss] #1
        WholeStageCodegen (8)
          HashAggregate [cc_call_center_id,cc_name,cc_manager,cd_marital_status,cd_education_status,sum] [sum(UnscaledValue(cr_net_loss)),Call_Center,Call_Center_Name,Manager,Returns_Loss,sum]
            InputAdapter
              Exchange [cc_call_center_id,cc_name,cc_manager,cd_marital_status,cd_education_status] #2
                WholeStageCodegen (7)
                  HashAggregate [cc_call_center_id,cc_name,cc_manager,cd_marital_status,cd_education_status,cr_net_loss] [sum,sum]
                    Project [cc_call_center_id,cc_name,cc_manager,cr_net_loss,cd_marital_status,cd_education_status]
                      BroadcastHashJoin [c_current_hdemo_sk,hd_demo_sk]
                        Project [cc_call_center_id,cc_name,cc_manager,cr_net_loss,c_current_hdemo_sk,cd_marital_status,cd_education_status]
                          BroadcastHashJoin [c_current_cdemo_sk,cd_demo_sk]
                            Project [cc_call_center_id,cc_name,cc_manager,cr_net_loss,c_current_cdemo_sk,c_current_hdemo_sk]
                              BroadcastHashJoin [c_current_addr_sk,ca_address_sk]
                                Project [cc_call_center_id,cc_name,cc_manager,cr_net_loss,c_current_cdemo_sk,c_current_hdemo_sk,c_current_addr_sk]
                                  BroadcastHashJoin [cr_returning_customer_sk,c_customer_sk]
                                    Project [cc_call_center_id,cc_name,cc_manager,cr_returning_customer_sk,cr_net_loss]
                                      BroadcastHashJoin [cr_returned_date_sk,d_date_sk]
                                        Project [cc_call_center_id,cc_name,cc_manager,cr_returning_customer_sk,cr_net_loss,cr_returned_date_sk]
                                          BroadcastHashJoin [cc_call_center_sk,cr_call_center_sk]
                                            Filter [cc_call_center_sk]
                                              ColumnarToRow
                                                InputAdapter
                                                  Scan parquet spark_catalog.default.call_center [cc_call_center_sk,cc_call_center_id,cc_name,cc_manager]
                                            InputAdapter
                                              BroadcastExchange #3
                                                WholeStageCodegen (1)
                                                  Filter [cr_call_center_sk,cr_returning_customer_sk]
                                                    ColumnarToRow
                                                      InputAdapter
                                                        Scan parquet spark_catalog.default.catalog_returns [cr_returning_customer_sk,cr_call_center_sk,cr_net_loss,cr_returned_date_sk]
                                                          SubqueryBroadcast [d_date_sk] #1
                                                            BroadcastExchange #4
                                                              WholeStageCodegen (1)
                                                                Project [d_date_sk]
                                                                  Filter [d_year,d_moy,d_date_sk]
                                                                    ColumnarToRow
                                                                      InputAdapter
                                                                        Scan parquet spark_catalog.default.date_dim [d_date_sk,d_year,d_moy]
                                        InputAdapter
                                          ReusedExchange [d_date_sk] #4
                                    InputAdapter
                                      BroadcastExchange #5
                                        WholeStageCodegen (3)
                                          Filter [c_customer_sk,c_current_addr_sk,c_current_cdemo_sk,c_current_hdemo_sk]
                                            ColumnarToRow
                                              InputAdapter
                                                Scan parquet spark_catalog.default.customer [c_customer_sk,c_current_cdemo_sk,c_current_hdemo_sk,c_current_addr_sk]
                                InputAdapter
                                  BroadcastExchange #6
                                    WholeStageCodegen (4)
                                      Project [ca_address_sk]
                                        Filter [ca_gmt_offset,ca_address_sk]
                                          ColumnarToRow
                                            InputAdapter
                                              Scan parquet spark_catalog.default.customer_address [ca_address_sk,ca_gmt_offset]
                            InputAdapter
                              BroadcastExchange #7
                                WholeStageCodegen (5)
                                  Filter [cd_marital_status,cd_education_status,cd_demo_sk]
                                    ColumnarToRow
                                      InputAdapter
                                        Scan parquet spark_catalog.default.customer_demographics [cd_demo_sk,cd_marital_status,cd_education_status]
                        InputAdapter
                          BroadcastExchange #8
                            WholeStageCodegen (6)
                              Project [hd_demo_sk]
                                Filter [hd_buy_potential,hd_demo_sk]
                                  ColumnarToRow
                                    InputAdapter
                                      Scan parquet spark_catalog.default.household_demographics [hd_demo_sk,hd_buy_potential]
