TakeOrderedAndProject [customer_id,customer_first_name,customer_last_name]
  WholeStageCodegen (8)
    Project [customer_id,customer_first_name,customer_last_name]
      BroadcastHashJoin [customer_id,customer_id,year_total,year_total,year_total,year_total]
        Project [customer_id,year_total,customer_id,customer_first_name,customer_last_name,year_total,year_total]
          BroadcastHashJoin [customer_id,customer_id]
            BroadcastHashJoin [customer_id,customer_id]
              Filter [year_total]
                HashAggregate [c_customer_id,c_first_name,c_last_name,d_year,sum] [sum(UnscaledValue(ss_net_paid)),customer_id,year_total,sum]
                  InputAdapter
                    Exchange [c_customer_id,c_first_name,c_last_name,d_year] #1
                      WholeStageCodegen (1)
                        HashAggregate [c_customer_id,c_first_name,c_last_name,d_year,ss_net_paid] [sum,sum]
                          ColumnarToRow
                            InputAdapter
                              CometProject [c_customer_id,c_first_name,c_last_name,ss_net_paid,d_year]
                                CometBroadcastHashJoin [c_customer_id,c_first_name,c_last_name,ss_net_paid,ss_sold_date_sk,d_date_sk,d_year]
                                  CometProject [c_customer_id,c_first_name,c_last_name,ss_net_paid,ss_sold_date_sk]
                                    CometBroadcastHashJoin [c_customer_sk,c_customer_id,c_first_name,c_last_name,ss_customer_sk,ss_net_paid,ss_sold_date_sk]
                                      CometFilter [c_customer_sk,c_customer_id,c_first_name,c_last_name]
                                        CometNativeScan: `spark_catalog`.`default`.`customer` [c_customer_sk,c_customer_id,c_first_name,c_last_name]
                                      CometBroadcastExchange [ss_customer_sk,ss_net_paid,ss_sold_date_sk] #2
                                        CometFilter [ss_customer_sk,ss_net_paid,ss_sold_date_sk]
                                          CometNativeScan: `spark_catalog`.`default`.`store_sales` [ss_customer_sk,ss_net_paid,ss_sold_date_sk]
                                  CometBroadcastExchange [d_date_sk,d_year] #3
                                    CometFilter [d_date_sk,d_year]
                                      CometNativeScan: `spark_catalog`.`default`.`date_dim` [d_date_sk,d_year]
              InputAdapter
                BroadcastExchange #4
                  WholeStageCodegen (3)
                    HashAggregate [c_customer_id,c_first_name,c_last_name,d_year,sum] [sum(UnscaledValue(ss_net_paid)),customer_id,customer_first_name,customer_last_name,year_total,sum]
                      InputAdapter
                        Exchange [c_customer_id,c_first_name,c_last_name,d_year] #5
                          WholeStageCodegen (2)
                            HashAggregate [c_customer_id,c_first_name,c_last_name,d_year,ss_net_paid] [sum,sum]
                              ColumnarToRow
                                InputAdapter
                                  CometProject [c_customer_id,c_first_name,c_last_name,ss_net_paid,d_year]
                                    CometBroadcastHashJoin [c_customer_id,c_first_name,c_last_name,ss_net_paid,ss_sold_date_sk,d_date_sk,d_year]
                                      CometProject [c_customer_id,c_first_name,c_last_name,ss_net_paid,ss_sold_date_sk]
                                        CometBroadcastHashJoin [c_customer_sk,c_customer_id,c_first_name,c_last_name,ss_customer_sk,ss_net_paid,ss_sold_date_sk]
                                          CometFilter [c_customer_sk,c_customer_id,c_first_name,c_last_name]
                                            CometNativeScan: `spark_catalog`.`default`.`customer` [c_customer_sk,c_customer_id,c_first_name,c_last_name]
                                          ReusedExchange [ss_customer_sk,ss_net_paid,ss_sold_date_sk] #2
                                      CometBroadcastExchange [d_date_sk,d_year] #6
                                        CometFilter [d_date_sk,d_year]
                                          CometNativeScan: `spark_catalog`.`default`.`date_dim` [d_date_sk,d_year]
            InputAdapter
              BroadcastExchange #7
                WholeStageCodegen (5)
                  Filter [year_total]
                    HashAggregate [c_customer_id,c_first_name,c_last_name,d_year,sum] [sum(UnscaledValue(ws_net_paid)),customer_id,year_total,sum]
                      InputAdapter
                        ReusedExchange [c_customer_id,c_first_name,c_last_name,d_year,sum] #1
        InputAdapter
          BroadcastExchange #8
            WholeStageCodegen (7)
              HashAggregate [c_customer_id,c_first_name,c_last_name,d_year,sum] [sum(UnscaledValue(ws_net_paid)),customer_id,year_total,sum]
                InputAdapter
                  ReusedExchange [c_customer_id,c_first_name,c_last_name,d_year,sum] #5
