WholeStageCodegen (7)
  HashAggregate [sum] [sum(UnscaledValue(cs_ext_discount_amt)),excess discount amount,sum]
    InputAdapter
      Exchange #1
        WholeStageCodegen (6)
          HashAggregate [cs_ext_discount_amt] [sum,sum]
            Project [cs_ext_discount_amt]
              BroadcastHashJoin [cs_sold_date_sk,d_date_sk]
                Project [cs_ext_discount_amt,cs_sold_date_sk]
                  BroadcastHashJoin [i_item_sk,cs_item_sk,cs_ext_discount_amt,(1.3 * avg(cs_ext_discount_amt))]
                    InputAdapter
                      BroadcastExchange #2
                        WholeStageCodegen (4)
                          Project [i_item_sk,(1.3 * avg(cs_ext_discount_amt))]
                            BroadcastHashJoin [i_item_sk,cs_item_sk]
                              InputAdapter
                                BroadcastExchange #3
                                  WholeStageCodegen (1)
                                    Project [i_item_sk]
                                      Filter [i_manufact_id,i_item_sk]
                                        ColumnarToRow
                                          InputAdapter
                                            Scan parquet spark_catalog.default.item [i_item_sk,i_manufact_id]
                              Filter [(1.3 * avg(cs_ext_discount_amt))]
                                HashAggregate [cs_item_sk,sum,count] [avg(UnscaledValue(cs_ext_discount_amt)),(1.3 * avg(cs_ext_discount_amt)),sum,count]
                                  InputAdapter
                                    Exchange [cs_item_sk] #4
                                      WholeStageCodegen (3)
                                        HashAggregate [cs_item_sk,cs_ext_discount_amt] [sum,count,sum,count]
                                          Project [cs_item_sk,cs_ext_discount_amt]
                                            BroadcastHashJoin [cs_sold_date_sk,d_date_sk]
                                              Filter [cs_item_sk]
                                                Subquery #2
                                                  ObjectHashAggregate [buf] [bloom_filter_agg(xxhash64(i_item_sk, 42), 199, 5556, 0, 0),bloomFilter,buf]
                                                    Exchange #6
                                                      ObjectHashAggregate [i_item_sk] [buf,buf]
                                                        WholeStageCodegen (1)
                                                          Project [i_item_sk]
                                                            Filter [i_manufact_id,i_item_sk]
                                                              ColumnarToRow
                                                                InputAdapter
                                                                  Scan parquet spark_catalog.default.item [i_item_sk,i_manufact_id]
                                                ColumnarToRow
                                                  InputAdapter
                                                    Scan parquet spark_catalog.default.catalog_sales [cs_item_sk,cs_ext_discount_amt,cs_sold_date_sk]
                                                      SubqueryBroadcast [d_date_sk] #1
                                                        BroadcastExchange #5
                                                          WholeStageCodegen (1)
                                                            Project [d_date_sk]
                                                              Filter [d_date,d_date_sk]
                                                                ColumnarToRow
                                                                  InputAdapter
                                                                    Scan parquet spark_catalog.default.date_dim [d_date_sk,d_date]
                                              InputAdapter
                                                ReusedExchange [d_date_sk] #5
                    Filter [cs_item_sk,cs_ext_discount_amt]
                      ColumnarToRow
                        InputAdapter
                          Scan parquet spark_catalog.default.catalog_sales [cs_item_sk,cs_ext_discount_amt,cs_sold_date_sk]
                            ReusedSubquery [d_date_sk] #1
                InputAdapter
                  ReusedExchange [d_date_sk] #5
