== Physical Plan ==
VeloxColumnarToRow (96)
+- TakeOrderedAndProjectExecTransformer (95)
   +- ColumnarUnion (94)
      :- ^ RegularHashAggregateExecTransformer (39)
      :  +- ^ RegularHashAggregateExecTransformer (38)
      :     +- ^ InputIteratorTransformer (37)
      :        +- ColumnarExchange (35)
      :           +- VeloxResizeBatches (34)
      :              +- ^ ProjectExecTransformer (32)
      :                 +- ^ FlushableHashAggregateExecTransformer (31)
      :                    +- ^ ProjectExecTransformer (30)
      :                       +- ^ ShuffledHashJoinExecTransformer Inner BuildRight (29)
      :                          :- ^ InputIteratorTransformer (20)
      :                          :  +- ColumnarExchange (18)
      :                          :     +- VeloxResizeBatches (17)
      :                          :        +- ^ ProjectExecTransformer (15)
      :                          :           +- ^ BroadcastHashJoinExecTransformer Inner BuildRight (14)
      :                          :              :- ^ ProjectExecTransformer (10)
      :                          :              :  +- ^ BroadcastHashJoinExecTransformer Inner BuildRight (9)
      :                          :              :     :- ^ FilterExecTransformer (2)
      :                          :              :     :  +- ^ FileSourceScanExecTransformer parquet spark_catalog.default.inventory (1)
      :                          :              :     +- ^ InputIteratorTransformer (8)
      :                          :              :        +- ColumnarBroadcastExchange (6)
      :                          :              :           +- ^ FilterExecTransformer (4)
      :                          :              :              +- ^ FileSourceScanExecTransformer parquet spark_catalog.default.warehouse (3)
      :                          :              +- ^ InputIteratorTransformer (13)
      :                          :                 +- ReusedExchange (11)
      :                          +- ^ InputIteratorTransformer (28)
      :                             +- ColumnarExchange (26)
      :                                +- VeloxResizeBatches (25)
      :                                   +- ^ ProjectExecTransformer (23)
      :                                      +- ^ FilterExecTransformer (22)
      :                                         +- ^ FileSourceScanExecTransformer parquet spark_catalog.default.item (21)
      :- ^ ProjectExecTransformer (54)
      :  +- ^ RegularHashAggregateExecTransformer (53)
      :     +- ^ InputIteratorTransformer (52)
      :        +- ColumnarExchange (50)
      :           +- VeloxResizeBatches (49)
      :              +- ^ ProjectExecTransformer (47)
      :                 +- ^ FlushableHashAggregateExecTransformer (46)
      :                    +- ^ ProjectExecTransformer (45)
      :                       +- ^ RegularHashAggregateExecTransformer (44)
      :                          +- ^ InputIteratorTransformer (43)
      :                             +- ReusedExchange (41)
      :- ^ ProjectExecTransformer (69)
      :  +- ^ RegularHashAggregateExecTransformer (68)
      :     +- ^ InputIteratorTransformer (67)
      :        +- ColumnarExchange (65)
      :           +- VeloxResizeBatches (64)
      :              +- ^ ProjectExecTransformer (62)
      :                 +- ^ FlushableHashAggregateExecTransformer (61)
      :                    +- ^ ProjectExecTransformer (60)
      :                       +- ^ RegularHashAggregateExecTransformer (59)
      :                          +- ^ InputIteratorTransformer (58)
      :                             +- ReusedExchange (56)
      :- ^ ProjectExecTransformer (84)
      :  +- ^ RegularHashAggregateExecTransformer (83)
      :     +- ^ InputIteratorTransformer (82)
      :        +- ColumnarExchange (80)
      :           +- VeloxResizeBatches (79)
      :              +- ^ ProjectExecTransformer (77)
      :                 +- ^ FlushableHashAggregateExecTransformer (76)
      :                    +- ^ ProjectExecTransformer (75)
      :                       +- ^ RegularHashAggregateExecTransformer (74)
      :                          +- ^ InputIteratorTransformer (73)
      :                             +- ReusedExchange (71)
      +- ^ ProjectExecTransformer (92)
         +- ^ RegularHashAggregateExecTransformer (91)
            +- ^ ProjectExecTransformer (90)
               +- ^ RegularHashAggregateExecTransformer (89)
                  +- ^ InputIteratorTransformer (88)
                     +- ReusedExchange (86)


(1) FileSourceScanExecTransformer parquet spark_catalog.default.inventory
Output [4]: [inv_item_sk#1, inv_warehouse_sk#2, inv_quantity_on_hand#3, inv_date_sk#4]
Batched: true
Location: InMemoryFileIndex []
PartitionFilters: [isnotnull(inv_date_sk#4), dynamicpruningexpression(inv_date_sk#4 IN dynamicpruning#5)]
PushedFilters: [IsNotNull(inv_item_sk), IsNotNull(inv_warehouse_sk)]
ReadSchema: struct<inv_item_sk:int,inv_warehouse_sk:int,inv_quantity_on_hand:int>

(2) FilterExecTransformer
Input [4]: [inv_item_sk#1, inv_warehouse_sk#2, inv_quantity_on_hand#3, inv_date_sk#4]
Arguments: (isnotnull(inv_item_sk#1) AND isnotnull(inv_warehouse_sk#2))

(3) FileSourceScanExecTransformer parquet spark_catalog.default.warehouse
Output [1]: [w_warehouse_sk#6]
Batched: true
Location: InMemoryFileIndex [{warehouse_dir}/warehouse]
PushedFilters: [IsNotNull(w_warehouse_sk)]
ReadSchema: struct<w_warehouse_sk:int>

(4) FilterExecTransformer
Input [1]: [w_warehouse_sk#6]
Arguments: isnotnull(w_warehouse_sk#6)

(5) WholeStageCodegenTransformer (2)
Input [1]: [w_warehouse_sk#6]
Arguments: false

(6) ColumnarBroadcastExchange
Input [1]: [w_warehouse_sk#6]
Arguments: HashedRelationBroadcastMode(List(cast(input[0, int, false] as bigint)),false), [plan_id=1]

(7) InputAdapter
Input [1]: [w_warehouse_sk#6]

(8) InputIteratorTransformer
Input [1]: [w_warehouse_sk#6]

(9) BroadcastHashJoinExecTransformer
Left keys [1]: [inv_warehouse_sk#2]
Right keys [1]: [w_warehouse_sk#6]
Join type: Inner
Join condition: None

(10) ProjectExecTransformer
Output [3]: [inv_item_sk#1, inv_quantity_on_hand#3, inv_date_sk#4]
Input [5]: [inv_item_sk#1, inv_warehouse_sk#2, inv_quantity_on_hand#3, inv_date_sk#4, w_warehouse_sk#6]

(11) ReusedExchange [Reuses operator id: 101]
Output [1]: [d_date_sk#7]

(12) InputAdapter
Input [1]: [d_date_sk#7]

(13) InputIteratorTransformer
Input [1]: [d_date_sk#7]

(14) BroadcastHashJoinExecTransformer
Left keys [1]: [inv_date_sk#4]
Right keys [1]: [d_date_sk#7]
Join type: Inner
Join condition: None

(15) ProjectExecTransformer
Output [3]: [hash(inv_item_sk#1, 42) AS hash_partition_key#8, inv_item_sk#1, inv_quantity_on_hand#3]
Input [4]: [inv_item_sk#1, inv_quantity_on_hand#3, inv_date_sk#4, d_date_sk#7]

(16) WholeStageCodegenTransformer (4)
Input [3]: [hash_partition_key#8, inv_item_sk#1, inv_quantity_on_hand#3]
Arguments: false

(17) VeloxResizeBatches
Input [3]: [hash_partition_key#8, inv_item_sk#1, inv_quantity_on_hand#3]
Arguments: 1024, 2147483647, 10485760

(18) ColumnarExchange
Input [3]: [hash_partition_key#8, inv_item_sk#1, inv_quantity_on_hand#3]
Arguments: hashpartitioning(inv_item_sk#1, 1), ENSURE_REQUIREMENTS, [inv_item_sk#1, inv_quantity_on_hand#3], [plan_id=2], [shuffle_writer_type=hash]

(19) InputAdapter
Input [2]: [inv_item_sk#1, inv_quantity_on_hand#3]

(20) InputIteratorTransformer
Input [2]: [inv_item_sk#1, inv_quantity_on_hand#3]

(21) FileSourceScanExecTransformer parquet spark_catalog.default.item
Output [5]: [i_item_sk#9, i_brand#10, i_class#11, i_category#12, i_product_name#13]
Batched: true
Location: InMemoryFileIndex [{warehouse_dir}/item]
PushedFilters: [IsNotNull(i_item_sk)]
ReadSchema: struct<i_item_sk:int,i_brand:string,i_class:string,i_category:string,i_product_name:string>

(22) FilterExecTransformer
Input [5]: [i_item_sk#9, i_brand#10, i_class#11, i_category#12, i_product_name#13]
Arguments: isnotnull(i_item_sk#9)

(23) ProjectExecTransformer
Output [6]: [hash(i_item_sk#9, 42) AS hash_partition_key#14, i_item_sk#9, i_brand#10, i_class#11, i_category#12, i_product_name#13]
Input [5]: [i_item_sk#9, i_brand#10, i_class#11, i_category#12, i_product_name#13]

(24) WholeStageCodegenTransformer (5)
Input [6]: [hash_partition_key#14, i_item_sk#9, i_brand#10, i_class#11, i_category#12, i_product_name#13]
Arguments: false

(25) VeloxResizeBatches
Input [6]: [hash_partition_key#14, i_item_sk#9, i_brand#10, i_class#11, i_category#12, i_product_name#13]
Arguments: 1024, 2147483647, 10485760

(26) ColumnarExchange
Input [6]: [hash_partition_key#14, i_item_sk#9, i_brand#10, i_class#11, i_category#12, i_product_name#13]
Arguments: hashpartitioning(i_item_sk#9, 1), ENSURE_REQUIREMENTS, [i_item_sk#9, i_brand#10, i_class#11, i_category#12, i_product_name#13], [plan_id=3], [shuffle_writer_type=hash]

(27) InputAdapter
Input [5]: [i_item_sk#9, i_brand#10, i_class#11, i_category#12, i_product_name#13]

(28) InputIteratorTransformer
Input [5]: [i_item_sk#9, i_brand#10, i_class#11, i_category#12, i_product_name#13]

(29) ShuffledHashJoinExecTransformer
Left keys [1]: [inv_item_sk#1]
Right keys [1]: [i_item_sk#9]
Join type: Inner
Join condition: None

(30) ProjectExecTransformer
Output [5]: [inv_quantity_on_hand#3, i_brand#10, i_class#11, i_category#12, i_product_name#13]
Input [7]: [inv_item_sk#1, inv_quantity_on_hand#3, i_item_sk#9, i_brand#10, i_class#11, i_category#12, i_product_name#13]

(31) FlushableHashAggregateExecTransformer
Input [5]: [inv_quantity_on_hand#3, i_brand#10, i_class#11, i_category#12, i_product_name#13]
Keys [4]: [i_product_name#13, i_brand#10, i_class#11, i_category#12]
Functions [1]: [partial_avg(inv_quantity_on_hand#3)]
Aggregate Attributes [2]: [sum#15, count#16]
Results [6]: [i_product_name#13, i_brand#10, i_class#11, i_category#12, sum#17, count#18]

(32) ProjectExecTransformer
Output [7]: [hash(i_product_name#13, i_brand#10, i_class#11, i_category#12, 42) AS hash_partition_key#19, i_product_name#13, i_brand#10, i_class#11, i_category#12, sum#17, count#18]
Input [6]: [i_product_name#13, i_brand#10, i_class#11, i_category#12, sum#17, count#18]

(33) WholeStageCodegenTransformer (6)
Input [7]: [hash_partition_key#19, i_product_name#13, i_brand#10, i_class#11, i_category#12, sum#17, count#18]
Arguments: false

(34) VeloxResizeBatches
Input [7]: [hash_partition_key#19, i_product_name#13, i_brand#10, i_class#11, i_category#12, sum#17, count#18]
Arguments: 1024, 2147483647, 10485760

(35) ColumnarExchange
Input [7]: [hash_partition_key#19, i_product_name#13, i_brand#10, i_class#11, i_category#12, sum#17, count#18]
Arguments: hashpartitioning(i_product_name#13, i_brand#10, i_class#11, i_category#12, 1), ENSURE_REQUIREMENTS, [i_product_name#13, i_brand#10, i_class#11, i_category#12, sum#17, count#18], [plan_id=4], [shuffle_writer_type=hash]

(36) InputAdapter
Input [6]: [i_product_name#13, i_brand#10, i_class#11, i_category#12, sum#17, count#18]

(37) InputIteratorTransformer
Input [6]: [i_product_name#13, i_brand#10, i_class#11, i_category#12, sum#17, count#18]

(38) RegularHashAggregateExecTransformer
Input [6]: [i_product_name#13, i_brand#10, i_class#11, i_category#12, sum#17, count#18]
Keys [4]: [i_product_name#13, i_brand#10, i_class#11, i_category#12]
Functions [1]: [avg(inv_quantity_on_hand#3)]
Aggregate Attributes [1]: [avg(inv_quantity_on_hand#3)#20]
Results [5]: [i_product_name#13, i_brand#10, i_class#11, i_category#12, avg(inv_quantity_on_hand#3)#20 AS qoh#21]

(39) RegularHashAggregateExecTransformer
Input [5]: [i_product_name#13, i_brand#10, i_class#11, i_category#12, qoh#21]
Keys [4]: [i_product_name#13, i_brand#10, i_class#11, i_category#12]
Functions [1]: [avg(qoh#21)]
Aggregate Attributes [1]: [avg(qoh#21)#22]
Results [5]: [i_product_name#13 AS i_product_name#23, i_brand#10 AS i_brand#24, i_class#11 AS i_class#25, i_category#12 AS i_category#26, avg(qoh#21)#22 AS qoh#27]

(40) WholeStageCodegenTransformer (7)
Input [5]: [i_product_name#23, i_brand#24, i_class#25, i_category#26, qoh#27]
Arguments: false

(41) ReusedExchange [Reuses operator id: 35]
Output [6]: [i_product_name#28, i_brand#29, i_class#30, i_category#31, sum#32, count#33]

(42) InputAdapter
Input [6]: [i_product_name#28, i_brand#29, i_class#30, i_category#31, sum#32, count#33]

(43) InputIteratorTransformer
Input [6]: [i_product_name#28, i_brand#29, i_class#30, i_category#31, sum#32, count#33]

(44) RegularHashAggregateExecTransformer
Input [6]: [i_product_name#28, i_brand#29, i_class#30, i_category#31, sum#32, count#33]
Keys [4]: [i_product_name#28, i_brand#29, i_class#30, i_category#31]
Functions [1]: [avg(inv_quantity_on_hand#34)]
Aggregate Attributes [1]: [avg(inv_quantity_on_hand#34)#20]
Results [5]: [i_product_name#28, i_brand#29, i_class#30, i_category#31, avg(inv_quantity_on_hand#34)#20]

(45) ProjectExecTransformer
Output [4]: [i_product_name#28, i_brand#29, i_class#30, avg(inv_quantity_on_hand#34)#20 AS qoh#35]
Input [5]: [i_product_name#28, i_brand#29, i_class#30, i_category#31, avg(inv_quantity_on_hand#34)#20]

(46) FlushableHashAggregateExecTransformer
Input [4]: [i_product_name#28, i_brand#29, i_class#30, qoh#35]
Keys [3]: [i_product_name#28, i_brand#29, i_class#30]
Functions [1]: [partial_avg(qoh#35)]
Aggregate Attributes [2]: [sum#36, count#37]
Results [5]: [i_product_name#28, i_brand#29, i_class#30, sum#38, count#39]

(47) ProjectExecTransformer
Output [6]: [hash(i_product_name#28, i_brand#29, i_class#30, 42) AS hash_partition_key#40, i_product_name#28, i_brand#29, i_class#30, sum#38, count#39]
Input [5]: [i_product_name#28, i_brand#29, i_class#30, sum#38, count#39]

(48) WholeStageCodegenTransformer (14)
Input [6]: [hash_partition_key#40, i_product_name#28, i_brand#29, i_class#30, sum#38, count#39]
Arguments: false

(49) VeloxResizeBatches
Input [6]: [hash_partition_key#40, i_product_name#28, i_brand#29, i_class#30, sum#38, count#39]
Arguments: 1024, 2147483647, 10485760

(50) ColumnarExchange
Input [6]: [hash_partition_key#40, i_product_name#28, i_brand#29, i_class#30, sum#38, count#39]
Arguments: hashpartitioning(i_product_name#28, i_brand#29, i_class#30, 1), ENSURE_REQUIREMENTS, [i_product_name#28, i_brand#29, i_class#30, sum#38, count#39], [plan_id=5], [shuffle_writer_type=hash]

(51) InputAdapter
Input [5]: [i_product_name#28, i_brand#29, i_class#30, sum#38, count#39]

(52) InputIteratorTransformer
Input [5]: [i_product_name#28, i_brand#29, i_class#30, sum#38, count#39]

(53) RegularHashAggregateExecTransformer
Input [5]: [i_product_name#28, i_brand#29, i_class#30, sum#38, count#39]
Keys [3]: [i_product_name#28, i_brand#29, i_class#30]
Functions [1]: [avg(qoh#35)]
Aggregate Attributes [1]: [avg(qoh#35)#41]
Results [4]: [i_product_name#28, i_brand#29, i_class#30, avg(qoh#35)#41]

(54) ProjectExecTransformer
Output [5]: [i_product_name#28, i_brand#29, i_class#30, null AS i_category#42, avg(qoh#35)#41 AS qoh#43]
Input [4]: [i_product_name#28, i_brand#29, i_class#30, avg(qoh#35)#41]

(55) WholeStageCodegenTransformer (15)
Input [5]: [i_product_name#28, i_brand#29, i_class#30, i_category#42, qoh#43]
Arguments: false

(56) ReusedExchange [Reuses operator id: 35]
Output [6]: [i_product_name#44, i_brand#45, i_class#46, i_category#47, sum#48, count#49]

(57) InputAdapter
Input [6]: [i_product_name#44, i_brand#45, i_class#46, i_category#47, sum#48, count#49]

(58) InputIteratorTransformer
Input [6]: [i_product_name#44, i_brand#45, i_class#46, i_category#47, sum#48, count#49]

(59) RegularHashAggregateExecTransformer
Input [6]: [i_product_name#44, i_brand#45, i_class#46, i_category#47, sum#48, count#49]
Keys [4]: [i_product_name#44, i_brand#45, i_class#46, i_category#47]
Functions [1]: [avg(inv_quantity_on_hand#50)]
Aggregate Attributes [1]: [avg(inv_quantity_on_hand#50)#20]
Results [5]: [i_product_name#44, i_brand#45, i_class#46, i_category#47, avg(inv_quantity_on_hand#50)#20]

(60) ProjectExecTransformer
Output [3]: [i_product_name#44, i_brand#45, avg(inv_quantity_on_hand#50)#20 AS qoh#51]
Input [5]: [i_product_name#44, i_brand#45, i_class#46, i_category#47, avg(inv_quantity_on_hand#50)#20]

(61) FlushableHashAggregateExecTransformer
Input [3]: [i_product_name#44, i_brand#45, qoh#51]
Keys [2]: [i_product_name#44, i_brand#45]
Functions [1]: [partial_avg(qoh#51)]
Aggregate Attributes [2]: [sum#52, count#53]
Results [4]: [i_product_name#44, i_brand#45, sum#54, count#55]

(62) ProjectExecTransformer
Output [5]: [hash(i_product_name#44, i_brand#45, 42) AS hash_partition_key#56, i_product_name#44, i_brand#45, sum#54, count#55]
Input [4]: [i_product_name#44, i_brand#45, sum#54, count#55]

(63) WholeStageCodegenTransformer (22)
Input [5]: [hash_partition_key#56, i_product_name#44, i_brand#45, sum#54, count#55]
Arguments: false

(64) VeloxResizeBatches
Input [5]: [hash_partition_key#56, i_product_name#44, i_brand#45, sum#54, count#55]
Arguments: 1024, 2147483647, 10485760

(65) ColumnarExchange
Input [5]: [hash_partition_key#56, i_product_name#44, i_brand#45, sum#54, count#55]
Arguments: hashpartitioning(i_product_name#44, i_brand#45, 1), ENSURE_REQUIREMENTS, [i_product_name#44, i_brand#45, sum#54, count#55], [plan_id=6], [shuffle_writer_type=hash]

(66) InputAdapter
Input [4]: [i_product_name#44, i_brand#45, sum#54, count#55]

(67) InputIteratorTransformer
Input [4]: [i_product_name#44, i_brand#45, sum#54, count#55]

(68) RegularHashAggregateExecTransformer
Input [4]: [i_product_name#44, i_brand#45, sum#54, count#55]
Keys [2]: [i_product_name#44, i_brand#45]
Functions [1]: [avg(qoh#51)]
Aggregate Attributes [1]: [avg(qoh#51)#57]
Results [3]: [i_product_name#44, i_brand#45, avg(qoh#51)#57]

(69) ProjectExecTransformer
Output [5]: [i_product_name#44, i_brand#45, null AS i_class#58, null AS i_category#59, avg(qoh#51)#57 AS qoh#60]
Input [3]: [i_product_name#44, i_brand#45, avg(qoh#51)#57]

(70) WholeStageCodegenTransformer (23)
Input [5]: [i_product_name#44, i_brand#45, i_class#58, i_category#59, qoh#60]
Arguments: false

(71) ReusedExchange [Reuses operator id: 35]
Output [6]: [i_product_name#61, i_brand#62, i_class#63, i_category#64, sum#65, count#66]

(72) InputAdapter
Input [6]: [i_product_name#61, i_brand#62, i_class#63, i_category#64, sum#65, count#66]

(73) InputIteratorTransformer
Input [6]: [i_product_name#61, i_brand#62, i_class#63, i_category#64, sum#65, count#66]

(74) RegularHashAggregateExecTransformer
Input [6]: [i_product_name#61, i_brand#62, i_class#63, i_category#64, sum#65, count#66]
Keys [4]: [i_product_name#61, i_brand#62, i_class#63, i_category#64]
Functions [1]: [avg(inv_quantity_on_hand#67)]
Aggregate Attributes [1]: [avg(inv_quantity_on_hand#67)#20]
Results [5]: [i_product_name#61, i_brand#62, i_class#63, i_category#64, avg(inv_quantity_on_hand#67)#20]

(75) ProjectExecTransformer
Output [2]: [i_product_name#61, avg(inv_quantity_on_hand#67)#20 AS qoh#68]
Input [5]: [i_product_name#61, i_brand#62, i_class#63, i_category#64, avg(inv_quantity_on_hand#67)#20]

(76) FlushableHashAggregateExecTransformer
Input [2]: [i_product_name#61, qoh#68]
Keys [1]: [i_product_name#61]
Functions [1]: [partial_avg(qoh#68)]
Aggregate Attributes [2]: [sum#69, count#70]
Results [3]: [i_product_name#61, sum#71, count#72]

(77) ProjectExecTransformer
Output [4]: [hash(i_product_name#61, 42) AS hash_partition_key#73, i_product_name#61, sum#71, count#72]
Input [3]: [i_product_name#61, sum#71, count#72]

(78) WholeStageCodegenTransformer (30)
Input [4]: [hash_partition_key#73, i_product_name#61, sum#71, count#72]
Arguments: false

(79) VeloxResizeBatches
Input [4]: [hash_partition_key#73, i_product_name#61, sum#71, count#72]
Arguments: 1024, 2147483647, 10485760

(80) ColumnarExchange
Input [4]: [hash_partition_key#73, i_product_name#61, sum#71, count#72]
Arguments: hashpartitioning(i_product_name#61, 1), ENSURE_REQUIREMENTS, [i_product_name#61, sum#71, count#72], [plan_id=7], [shuffle_writer_type=hash]

(81) InputAdapter
Input [3]: [i_product_name#61, sum#71, count#72]

(82) InputIteratorTransformer
Input [3]: [i_product_name#61, sum#71, count#72]

(83) RegularHashAggregateExecTransformer
Input [3]: [i_product_name#61, sum#71, count#72]
Keys [1]: [i_product_name#61]
Functions [1]: [avg(qoh#68)]
Aggregate Attributes [1]: [avg(qoh#68)#74]
Results [2]: [i_product_name#61, avg(qoh#68)#74]

(84) ProjectExecTransformer
Output [5]: [i_product_name#61, null AS i_brand#75, null AS i_class#76, null AS i_category#77, avg(qoh#68)#74 AS qoh#78]
Input [2]: [i_product_name#61, avg(qoh#68)#74]

(85) WholeStageCodegenTransformer (31)
Input [5]: [i_product_name#61, i_brand#75, i_class#76, i_category#77, qoh#78]
Arguments: false

(86) ReusedExchange [Reuses operator id: 35]
Output [6]: [i_product_name#79, i_brand#80, i_class#81, i_category#82, sum#83, count#84]

(87) InputAdapter
Input [6]: [i_product_name#79, i_brand#80, i_class#81, i_category#82, sum#83, count#84]

(88) InputIteratorTransformer
Input [6]: [i_product_name#79, i_brand#80, i_class#81, i_category#82, sum#83, count#84]

(89) RegularHashAggregateExecTransformer
Input [6]: [i_product_name#79, i_brand#80, i_class#81, i_category#82, sum#83, count#84]
Keys [4]: [i_product_name#79, i_brand#80, i_class#81, i_category#82]
Functions [1]: [avg(inv_quantity_on_hand#85)]
Aggregate Attributes [1]: [avg(inv_quantity_on_hand#85)#20]
Results [5]: [i_product_name#79, i_brand#80, i_class#81, i_category#82, avg(inv_quantity_on_hand#85)#20]

(90) ProjectExecTransformer
Output [1]: [avg(inv_quantity_on_hand#85)#20 AS qoh#86]
Input [5]: [i_product_name#79, i_brand#80, i_class#81, i_category#82, avg(inv_quantity_on_hand#85)#20]

(91) RegularHashAggregateExecTransformer
Input [1]: [qoh#86]
Keys: []
Functions [1]: [avg(qoh#86)]
Aggregate Attributes [1]: [avg(qoh#86)#87]
Results [1]: [avg(qoh#86)#87]

(92) ProjectExecTransformer
Output [5]: [null AS i_product_name#88, null AS i_brand#89, null AS i_class#90, null AS i_category#91, avg(qoh#86)#87 AS qoh#92]
Input [1]: [avg(qoh#86)#87]

(93) WholeStageCodegenTransformer (38)
Input [5]: [i_product_name#88, i_brand#89, i_class#90, i_category#91, qoh#92]
Arguments: false

(94) ColumnarUnion
Arguments: UnknownPartitioning(0)

(95) TakeOrderedAndProjectExecTransformer
Input [5]: [i_product_name#23, i_brand#24, i_class#25, i_category#26, qoh#27]
Arguments: 100, [qoh#27 ASC NULLS FIRST, i_product_name#23 ASC NULLS FIRST, i_brand#24 ASC NULLS FIRST, i_class#25 ASC NULLS FIRST, i_category#26 ASC NULLS FIRST], [i_product_name#23, i_brand#24, i_class#25, i_category#26, qoh#27], 0

(96) VeloxColumnarToRow
Input [5]: [i_product_name#23, i_brand#24, i_class#25, i_category#26, qoh#27]

===== Subqueries =====

Subquery:1 Hosting operator id = 1 Hosting Expression = inv_date_sk#4 IN dynamicpruning#5
ColumnarBroadcastExchange (101)
+- ^ ProjectExecTransformer (99)
   +- ^ FilterExecTransformer (98)
      +- ^ FileSourceScanExecTransformer parquet spark_catalog.default.date_dim (97)


(97) FileSourceScanExecTransformer parquet spark_catalog.default.date_dim
Output [2]: [d_date_sk#7, d_month_seq#93]
Batched: true
Location: InMemoryFileIndex [{warehouse_dir}/date_dim]
PushedFilters: [IsNotNull(d_month_seq), GreaterThanOrEqual(d_month_seq,1212), LessThanOrEqual(d_month_seq,1223), IsNotNull(d_date_sk)]
ReadSchema: struct<d_date_sk:int,d_month_seq:int>

(98) FilterExecTransformer
Input [2]: [d_date_sk#7, d_month_seq#93]
Arguments: (((isnotnull(d_month_seq#93) AND (d_month_seq#93 >= 1212)) AND (d_month_seq#93 <= 1223)) AND isnotnull(d_date_sk#7))

(99) ProjectExecTransformer
Output [1]: [d_date_sk#7]
Input [2]: [d_date_sk#7, d_month_seq#93]

(100) WholeStageCodegenTransformer (1)
Input [1]: [d_date_sk#7]
Arguments: false

(101) ColumnarBroadcastExchange
Input [1]: [d_date_sk#7]
Arguments: HashedRelationBroadcastMode(List(cast(input[0, int, true] as bigint)),false), [plan_id=8]


