WholeStageCodegen (25)
  Sort [ca_county]
    InputAdapter
      Exchange [ca_county] #1
        WholeStageCodegen (24)
          Project [ca_county,d_year,web_sales,web_sales,store_sales,store_sales,web_sales,store_sales]
            BroadcastHashJoin [ca_county,ca_county,web_sales,web_sales,store_sales,store_sales]
              Project [ca_county,d_year,store_sales,store_sales,store_sales,ca_county,web_sales,web_sales]
                BroadcastHashJoin [ca_county,ca_county,web_sales,web_sales,store_sales,store_sales]
                  BroadcastHashJoin [ca_county,ca_county]
                    Project [ca_county,d_year,store_sales,store_sales,store_sales]
                      BroadcastHashJoin [ca_county,ca_county]
                        BroadcastHashJoin [ca_county,ca_county]
                          HashAggregate [ca_county,d_qoy,d_year,sum] [sum(UnscaledValue(ss_ext_sales_price)),store_sales,sum]
                            InputAdapter
                              Exchange [ca_county,d_qoy,d_year] #2
                                WholeStageCodegen (3)
                                  HashAggregate [ca_county,d_qoy,d_year,ss_ext_sales_price] [sum,sum]
                                    Project [ss_ext_sales_price,d_year,d_qoy,ca_county]
                                      BroadcastHashJoin [ss_addr_sk,ca_address_sk]
                                        Project [ss_addr_sk,ss_ext_sales_price,d_year,d_qoy]
                                          BroadcastHashJoin [ss_sold_date_sk,d_date_sk]
                                            Filter [ss_addr_sk]
                                              ColumnarToRow
                                                InputAdapter
                                                  Scan parquet spark_catalog.default.store_sales [ss_addr_sk,ss_ext_sales_price,ss_sold_date_sk]
                                                    SubqueryBroadcast [d_date_sk] #1
                                                      BroadcastExchange #3
                                                        WholeStageCodegen (1)
                                                          Filter [d_qoy,d_year,d_date_sk]
                                                            ColumnarToRow
                                                              InputAdapter
                                                                Scan parquet spark_catalog.default.date_dim [d_date_sk,d_year,d_qoy]
                                            InputAdapter
                                              ReusedExchange [d_date_sk,d_year,d_qoy] #3
                                        InputAdapter
                                          BroadcastExchange #4
                                            WholeStageCodegen (2)
                                              Filter [ca_address_sk,ca_county]
                                                ColumnarToRow
                                                  InputAdapter
                                                    Scan parquet spark_catalog.default.customer_address [ca_address_sk,ca_county]
                          InputAdapter
                            BroadcastExchange #5
                              WholeStageCodegen (7)
                                HashAggregate [ca_county,d_qoy,d_year,sum] [sum(UnscaledValue(ss_ext_sales_price)),store_sales,sum]
                                  InputAdapter
                                    Exchange [ca_county,d_qoy,d_year] #6
                                      WholeStageCodegen (6)
                                        HashAggregate [ca_county,d_qoy,d_year,ss_ext_sales_price] [sum,sum]
                                          Project [ss_ext_sales_price,d_year,d_qoy,ca_county]
                                            BroadcastHashJoin [ss_addr_sk,ca_address_sk]
                                              Project [ss_addr_sk,ss_ext_sales_price,d_year,d_qoy]
                                                BroadcastHashJoin [ss_sold_date_sk,d_date_sk]
                                                  Filter [ss_addr_sk]
                                                    ColumnarToRow
                                                      InputAdapter
                                                        Scan parquet spark_catalog.default.store_sales [ss_addr_sk,ss_ext_sales_price,ss_sold_date_sk]
                                                          SubqueryBroadcast [d_date_sk] #2
                                                            BroadcastExchange #7
                                                              WholeStageCodegen (1)
                                                                Filter [d_qoy,d_year,d_date_sk]
                                                                  ColumnarToRow
                                                                    InputAdapter
                                                                      Scan parquet spark_catalog.default.date_dim [d_date_sk,d_year,d_qoy]
                                                  InputAdapter
                                                    ReusedExchange [d_date_sk,d_year,d_qoy] #7
                                              InputAdapter
                                                ReusedExchange [ca_address_sk,ca_county] #4
                        InputAdapter
                          BroadcastExchange #8
                            WholeStageCodegen (11)
                              HashAggregate [ca_county,d_qoy,d_year,sum] [sum(UnscaledValue(ss_ext_sales_price)),store_sales,sum]
                                InputAdapter
                                  Exchange [ca_county,d_qoy,d_year] #9
                                    WholeStageCodegen (10)
                                      HashAggregate [ca_county,d_qoy,d_year,ss_ext_sales_price] [sum,sum]
                                        Project [ss_ext_sales_price,d_year,d_qoy,ca_county]
                                          BroadcastHashJoin [ss_addr_sk,ca_address_sk]
                                            Project [ss_addr_sk,ss_ext_sales_price,d_year,d_qoy]
                                              BroadcastHashJoin [ss_sold_date_sk,d_date_sk]
                                                Filter [ss_addr_sk]
                                                  ColumnarToRow
                                                    InputAdapter
                                                      Scan parquet spark_catalog.default.store_sales [ss_addr_sk,ss_ext_sales_price,ss_sold_date_sk]
                                                        SubqueryBroadcast [d_date_sk] #3
                                                          BroadcastExchange #10
                                                            WholeStageCodegen (1)
                                                              Filter [d_qoy,d_year,d_date_sk]
                                                                ColumnarToRow
                                                                  InputAdapter
                                                                    Scan parquet spark_catalog.default.date_dim [d_date_sk,d_year,d_qoy]
                                                InputAdapter
                                                  ReusedExchange [d_date_sk,d_year,d_qoy] #10
                                            InputAdapter
                                              ReusedExchange [ca_address_sk,ca_county] #4
                    InputAdapter
                      BroadcastExchange #11
                        WholeStageCodegen (15)
                          HashAggregate [ca_county,d_qoy,d_year,sum] [sum(UnscaledValue(ws_ext_sales_price)),web_sales,sum]
                            InputAdapter
                              Exchange [ca_county,d_qoy,d_year] #12
                                WholeStageCodegen (14)
                                  HashAggregate [ca_county,d_qoy,d_year,ws_ext_sales_price] [sum,sum]
                                    Project [ws_ext_sales_price,d_year,d_qoy,ca_county]
                                      BroadcastHashJoin [ws_bill_addr_sk,ca_address_sk]
                                        Project [ws_bill_addr_sk,ws_ext_sales_price,d_year,d_qoy]
                                          BroadcastHashJoin [ws_sold_date_sk,d_date_sk]
                                            Filter [ws_bill_addr_sk]
                                              ColumnarToRow
                                                InputAdapter
                                                  Scan parquet spark_catalog.default.web_sales [ws_bill_addr_sk,ws_ext_sales_price,ws_sold_date_sk]
                                                    ReusedSubquery [d_date_sk] #1
                                            InputAdapter
                                              ReusedExchange [d_date_sk,d_year,d_qoy] #3
                                        InputAdapter
                                          ReusedExchange [ca_address_sk,ca_county] #4
                  InputAdapter
                    BroadcastExchange #13
                      WholeStageCodegen (19)
                        HashAggregate [ca_county,d_qoy,d_year,sum] [sum(UnscaledValue(ws_ext_sales_price)),web_sales,sum]
                          InputAdapter
                            Exchange [ca_county,d_qoy,d_year] #14
                              WholeStageCodegen (18)
                                HashAggregate [ca_county,d_qoy,d_year,ws_ext_sales_price] [sum,sum]
                                  Project [ws_ext_sales_price,d_year,d_qoy,ca_county]
                                    BroadcastHashJoin [ws_bill_addr_sk,ca_address_sk]
                                      Project [ws_bill_addr_sk,ws_ext_sales_price,d_year,d_qoy]
                                        BroadcastHashJoin [ws_sold_date_sk,d_date_sk]
                                          Filter [ws_bill_addr_sk]
                                            ColumnarToRow
                                              InputAdapter
                                                Scan parquet spark_catalog.default.web_sales [ws_bill_addr_sk,ws_ext_sales_price,ws_sold_date_sk]
                                                  ReusedSubquery [d_date_sk] #2
                                          InputAdapter
                                            ReusedExchange [d_date_sk,d_year,d_qoy] #7
                                      InputAdapter
                                        ReusedExchange [ca_address_sk,ca_county] #4
              InputAdapter
                BroadcastExchange #15
                  WholeStageCodegen (23)
                    HashAggregate [ca_county,d_qoy,d_year,sum] [sum(UnscaledValue(ws_ext_sales_price)),web_sales,sum]
                      InputAdapter
                        Exchange [ca_county,d_qoy,d_year] #16
                          WholeStageCodegen (22)
                            HashAggregate [ca_county,d_qoy,d_year,ws_ext_sales_price] [sum,sum]
                              Project [ws_ext_sales_price,d_year,d_qoy,ca_county]
                                BroadcastHashJoin [ws_bill_addr_sk,ca_address_sk]
                                  Project [ws_bill_addr_sk,ws_ext_sales_price,d_year,d_qoy]
                                    BroadcastHashJoin [ws_sold_date_sk,d_date_sk]
                                      Filter [ws_bill_addr_sk]
                                        ColumnarToRow
                                          InputAdapter
                                            Scan parquet spark_catalog.default.web_sales [ws_bill_addr_sk,ws_ext_sales_price,ws_sold_date_sk]
                                              ReusedSubquery [d_date_sk] #3
                                      InputAdapter
                                        ReusedExchange [d_date_sk,d_year,d_qoy] #10
                                  InputAdapter
                                    ReusedExchange [ca_address_sk,ca_county] #4
