WholeStageCodegen (10)
  Sort [o_year]
    InputAdapter
      Exchange [o_year] #1
        WholeStageCodegen (9)
          HashAggregate [o_year,sum,isEmpty,sum,isEmpty] [sum(CASE WHEN (nation = BRAZIL) THEN volume ELSE 0 END),sum(volume),mkt_share,sum,isEmpty,sum,isEmpty]
            InputAdapter
              Exchange [o_year] #2
                WholeStageCodegen (8)
                  HashAggregate [o_year,nation,volume] [sum,isEmpty,sum,isEmpty,sum,isEmpty,sum,isEmpty]
                    Project [o_orderdate,l_extendedprice,l_discount,n_name]
                      BroadcastHashJoin [n_regionkey,r_regionkey]
                        Project [l_extendedprice,l_discount,o_orderdate,n_regionkey,n_name]
                          BroadcastHashJoin [s_nationkey,n_nationkey]
                            Project [l_extendedprice,l_discount,s_nationkey,o_orderdate,n_regionkey]
                              BroadcastHashJoin [c_nationkey,n_nationkey]
                                Project [l_extendedprice,l_discount,s_nationkey,o_orderdate,c_nationkey]
                                  BroadcastHashJoin [o_custkey,c_custkey]
                                    Project [l_extendedprice,l_discount,s_nationkey,o_custkey,o_orderdate]
                                      BroadcastHashJoin [l_orderkey,o_orderkey]
                                        Project [l_orderkey,l_extendedprice,l_discount,s_nationkey]
                                          BroadcastHashJoin [l_suppkey,s_suppkey]
                                            Project [l_orderkey,l_suppkey,l_extendedprice,l_discount]
                                              BroadcastHashJoin [p_partkey,l_partkey]
                                                Project [p_partkey]
                                                  Filter [p_type,p_partkey]
                                                    ColumnarToRow
                                                      InputAdapter
                                                        Scan parquet spark_catalog.default.part [p_partkey,p_type]
                                                InputAdapter
                                                  BroadcastExchange #3
                                                    WholeStageCodegen (1)
                                                      Filter [l_partkey,l_suppkey,l_orderkey]
                                                        ColumnarToRow
                                                          InputAdapter
                                                            Scan parquet spark_catalog.default.lineitem [l_orderkey,l_partkey,l_suppkey,l_extendedprice,l_discount]
                                            InputAdapter
                                              BroadcastExchange #4
                                                WholeStageCodegen (2)
                                                  Filter [s_suppkey,s_nationkey]
                                                    ColumnarToRow
                                                      InputAdapter
                                                        Scan parquet spark_catalog.default.supplier [s_suppkey,s_nationkey]
                                        InputAdapter
                                          BroadcastExchange #5
                                            WholeStageCodegen (3)
                                              Filter [o_orderdate,o_orderkey,o_custkey]
                                                ColumnarToRow
                                                  InputAdapter
                                                    Scan parquet spark_catalog.default.orders [o_orderkey,o_custkey,o_orderdate]
                                    InputAdapter
                                      BroadcastExchange #6
                                        WholeStageCodegen (4)
                                          Filter [c_custkey,c_nationkey]
                                            ColumnarToRow
                                              InputAdapter
                                                Scan parquet spark_catalog.default.customer [c_custkey,c_nationkey]
                                InputAdapter
                                  BroadcastExchange #7
                                    WholeStageCodegen (5)
                                      Filter [n_nationkey,n_regionkey]
                                        ColumnarToRow
                                          InputAdapter
                                            Scan parquet spark_catalog.default.nation [n_nationkey,n_regionkey]
                            InputAdapter
                              BroadcastExchange #8
                                WholeStageCodegen (6)
                                  Filter [n_nationkey]
                                    ColumnarToRow
                                      InputAdapter
                                        Scan parquet spark_catalog.default.nation [n_nationkey,n_name]
                        InputAdapter
                          BroadcastExchange #9
                            WholeStageCodegen (7)
                              Project [r_regionkey]
                                Filter [r_name,r_regionkey]
                                  ColumnarToRow
                                    InputAdapter
                                      Scan parquet spark_catalog.default.region [r_regionkey,r_name]
