== Physical Plan ==
AdaptiveSparkPlan (91)
+- == Final Plan ==
   NativeTakeOrdered (58)
   +- NativeProject (57)
      +- NativeHashAggregate (56)
         +- InputAdapter (55)
            +- AQEShuffleRead (54)
               +- ShuffleQueryStage (53), Statistics(X)
                  +- NativeShuffleExchange (52)
                     +- NativeHashAggregate (51)
                        +- NativeExpand (50)
                           +- NativeProject (49)
                              +- NativeSortMergeJoin Inner (48)
                                 :- NativeSort (39)
                                 :  +- InputAdapter (38)
                                 :     +- AQEShuffleRead (37)
                                 :        +- ShuffleQueryStage (36), Statistics(X)
                                 :           +- NativeShuffleExchange (35)
                                 :              +- NativeProject (34)
                                 :                 +- NativeSortMergeJoin Inner (33)
                                 :                    :- NativeSort (24)
                                 :                    :  +- InputAdapter (23)
                                 :                    :     +- AQEShuffleRead (22)
                                 :                    :        +- ShuffleQueryStage (21), Statistics(X)
                                 :                    :           +- NativeShuffleExchange (20)
                                 :                    :              +- NativeProject (19)
                                 :                    :                 +- NativeSortMergeJoin Inner (18)
                                 :                    :                    :- NativeSort (8)
                                 :                    :                    :  +- InputAdapter (7)
                                 :                    :                    :     +- AQEShuffleRead (6)
                                 :                    :                    :        +- ShuffleQueryStage (5), Statistics(X)
                                 :                    :                    :           +- NativeShuffleExchange (4)
                                 :                    :                    :              +- NativeFilter (3)
                                 :                    :                    :                 +- InputAdapter (2)
                                 :                    :                    :                    +- NativeParquetScan  (1)
                                 :                    :                    +- NativeSort (17)
                                 :                    :                       +- InputAdapter (16)
                                 :                    :                          +- AQEShuffleRead (15)
                                 :                    :                             +- ShuffleQueryStage (14), Statistics(X)
                                 :                    :                                +- NativeShuffleExchange (13)
                                 :                    :                                   +- NativeProject (12)
                                 :                    :                                      +- NativeFilter (11)
                                 :                    :                                         +- InputAdapter (10)
                                 :                    :                                            +- NativeParquetScan  (9)
                                 :                    +- NativeSort (32)
                                 :                       +- InputAdapter (31)
                                 :                          +- AQEShuffleRead (30)
                                 :                             +- ShuffleQueryStage (29), Statistics(X)
                                 :                                +- NativeShuffleExchange (28)
                                 :                                   +- NativeFilter (27)
                                 :                                      +- InputAdapter (26)
                                 :                                         +- NativeParquetScan  (25)
                                 +- NativeSort (47)
                                    +- InputAdapter (46)
                                       +- AQEShuffleRead (45)
                                          +- ShuffleQueryStage (44), Statistics(X)
                                             +- NativeShuffleExchange (43)
                                                +- NativeFilter (42)
                                                   +- InputAdapter (41)
                                                      +- NativeParquetScan  (40)
+- == Initial Plan ==
   TakeOrderedAndProject (90)
   +- HashAggregate (89)
      +- Exchange (88)
         +- HashAggregate (87)
            +- Expand (86)
               +- Project (85)
                  +- SortMergeJoin Inner (84)
                     :- Sort (79)
                     :  +- Exchange (78)
                     :     +- Project (77)
                     :        +- SortMergeJoin Inner (76)
                     :           :- Sort (71)
                     :           :  +- Exchange (70)
                     :           :     +- Project (69)
                     :           :        +- SortMergeJoin Inner (68)
                     :           :           :- Sort (62)
                     :           :           :  +- Exchange (61)
                     :           :           :     +- Filter (60)
                     :           :           :        +- Scan parquet (59)
                     :           :           +- Sort (67)
                     :           :              +- Exchange (66)
                     :           :                 +- Project (65)
                     :           :                    +- Filter (64)
                     :           :                       +- Scan parquet (63)
                     :           +- Sort (75)
                     :              +- Exchange (74)
                     :                 +- Filter (73)
                     :                    +- Scan parquet (72)
                     +- Sort (83)
                        +- Exchange (82)
                           +- Filter (81)
                              +- Scan parquet (80)


(59) Scan parquet
Output [4]: [inv_date_sk#1, inv_item_sk#2, inv_warehouse_sk#3, inv_quantity_on_hand#4]
Batched: true
Location: InMemoryFileIndex [file:/<warehouse_dir>]
PushedFilters: [IsNotNull(inv_date_sk), IsNotNull(inv_item_sk), IsNotNull(inv_warehouse_sk)]
ReadSchema: struct<inv_date_sk:int,inv_item_sk:int,inv_warehouse_sk:int,inv_quantity_on_hand:int>

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

(3) NativeFilter
Input [4]: [#1#1, #2#2, #3#3, #4#4]
Condition : ((isnotnull(inv_date_sk#1) AND isnotnull(inv_item_sk#2)) AND isnotnull(inv_warehouse_sk#3))

(4) NativeShuffleExchange
Input [4]: [#1#1, #2#2, #3#3, #4#4]
Arguments: hashpartitioning(inv_date_sk#1, 100), ENSURE_REQUIREMENTS, [plan_id=1]

(5) ShuffleQueryStage
Output [4]: [#1#1, #2#2, #3#3, #4#4]
Arguments: X

(6) AQEShuffleRead
Input [4]: [#1#1, #2#2, #3#3, #4#4]
Arguments: coalesced

(7) InputAdapter
Input [4]: [#1#1, #2#2, #3#3, #4#4]

(8) NativeSort
Input [4]: [#1#1, #2#2, #3#3, #4#4]
Arguments: [inv_date_sk#1 ASC NULLS FIRST], false

(63) Scan parquet
Output [2]: [d_date_sk#5, d_month_seq#6]
Batched: true
Location: InMemoryFileIndex [file:/<warehouse_dir>]
PushedFilters: [IsNotNull(d_month_seq), GreaterThanOrEqual(d_month_seq,1200), LessThanOrEqual(d_month_seq,1211), IsNotNull(d_date_sk)]
ReadSchema: struct<d_date_sk:int,d_month_seq:int>

(10) InputAdapter
Input [2]: [d_date_sk#5, d_month_seq#6]
Arguments: [#5, #6]

(11) NativeFilter
Input [2]: [#5#5, #6#6]
Condition : (((isnotnull(d_month_seq#6) AND (d_month_seq#6 >= 1200)) AND (d_month_seq#6 <= 1211)) AND isnotnull(d_date_sk#5))

(12) NativeProject
Output [1]: [d_date_sk#5]
Input [2]: [#5#5, #6#6]

(13) NativeShuffleExchange
Input [1]: [d_date_sk#5]
Arguments: hashpartitioning(d_date_sk#5, 100), ENSURE_REQUIREMENTS, [plan_id=2]

(14) ShuffleQueryStage
Output [1]: [d_date_sk#5]
Arguments: X

(15) AQEShuffleRead
Input [1]: [d_date_sk#5]
Arguments: coalesced

(16) InputAdapter
Input [1]: [d_date_sk#5]

(17) NativeSort
Input [1]: [d_date_sk#5]
Arguments: [d_date_sk#5 ASC NULLS FIRST], false

(18) NativeSortMergeJoin
Left keys [1]: [inv_date_sk#1]
Right keys [1]: [d_date_sk#5]
Join type: Inner
Join condition: None

(19) NativeProject
Output [3]: [inv_item_sk#2, inv_warehouse_sk#3, inv_quantity_on_hand#4]
Input [5]: [#1#1, #2#2, #3#3, #4#4, d_date_sk#5]

(20) NativeShuffleExchange
Input [3]: [inv_item_sk#2, inv_warehouse_sk#3, inv_quantity_on_hand#4]
Arguments: hashpartitioning(inv_item_sk#2, 100), ENSURE_REQUIREMENTS, [plan_id=3]

(21) ShuffleQueryStage
Output [3]: [inv_item_sk#2, inv_warehouse_sk#3, inv_quantity_on_hand#4]
Arguments: X

(22) AQEShuffleRead
Input [3]: [inv_item_sk#2, inv_warehouse_sk#3, inv_quantity_on_hand#4]
Arguments: coalesced

(23) InputAdapter
Input [3]: [inv_item_sk#2, inv_warehouse_sk#3, inv_quantity_on_hand#4]

(24) NativeSort
Input [3]: [inv_item_sk#2, inv_warehouse_sk#3, inv_quantity_on_hand#4]
Arguments: [inv_item_sk#2 ASC NULLS FIRST], false

(72) Scan parquet
Output [5]: [i_item_sk#7, i_brand#8, i_class#9, i_category#10, i_product_name#11]
Batched: true
Location: InMemoryFileIndex [file:/<warehouse_dir>]
PushedFilters: [IsNotNull(i_item_sk)]
ReadSchema: struct<i_item_sk:int,i_brand:string,i_class:string,i_category:string,i_product_name:string>

(26) InputAdapter
Input [5]: [i_item_sk#7, i_brand#8, i_class#9, i_category#10, i_product_name#11]
Arguments: [#7, #8, #9, #10, #11]

(27) NativeFilter
Input [5]: [#7#7, #8#8, #9#9, #10#10, #11#11]
Condition : isnotnull(i_item_sk#7)

(28) NativeShuffleExchange
Input [5]: [#7#7, #8#8, #9#9, #10#10, #11#11]
Arguments: hashpartitioning(i_item_sk#7, 100), ENSURE_REQUIREMENTS, [plan_id=4]

(29) ShuffleQueryStage
Output [5]: [#7#7, #8#8, #9#9, #10#10, #11#11]
Arguments: X

(30) AQEShuffleRead
Input [5]: [#7#7, #8#8, #9#9, #10#10, #11#11]
Arguments: coalesced

(31) InputAdapter
Input [5]: [#7#7, #8#8, #9#9, #10#10, #11#11]

(32) NativeSort
Input [5]: [#7#7, #8#8, #9#9, #10#10, #11#11]
Arguments: [i_item_sk#7 ASC NULLS FIRST], false

(33) NativeSortMergeJoin
Left keys [1]: [inv_item_sk#2]
Right keys [1]: [i_item_sk#7]
Join type: Inner
Join condition: None

(34) NativeProject
Output [6]: [inv_warehouse_sk#3, inv_quantity_on_hand#4, i_brand#8, i_class#9, i_category#10, i_product_name#11]
Input [8]: [inv_item_sk#2, inv_warehouse_sk#3, inv_quantity_on_hand#4, #7#7, #8#8, #9#9, #10#10, #11#11]

(35) NativeShuffleExchange
Input [6]: [inv_warehouse_sk#3, inv_quantity_on_hand#4, i_brand#8, i_class#9, i_category#10, i_product_name#11]
Arguments: hashpartitioning(inv_warehouse_sk#3, 100), ENSURE_REQUIREMENTS, [plan_id=5]

(36) ShuffleQueryStage
Output [6]: [inv_warehouse_sk#3, inv_quantity_on_hand#4, i_brand#8, i_class#9, i_category#10, i_product_name#11]
Arguments: X

(37) AQEShuffleRead
Input [6]: [inv_warehouse_sk#3, inv_quantity_on_hand#4, i_brand#8, i_class#9, i_category#10, i_product_name#11]
Arguments: coalesced

(38) InputAdapter
Input [6]: [inv_warehouse_sk#3, inv_quantity_on_hand#4, i_brand#8, i_class#9, i_category#10, i_product_name#11]

(39) NativeSort
Input [6]: [inv_warehouse_sk#3, inv_quantity_on_hand#4, i_brand#8, i_class#9, i_category#10, i_product_name#11]
Arguments: [inv_warehouse_sk#3 ASC NULLS FIRST], false

(80) Scan parquet
Output [1]: [w_warehouse_sk#12]
Batched: true
Location: InMemoryFileIndex [file:/<warehouse_dir>]
PushedFilters: [IsNotNull(w_warehouse_sk)]
ReadSchema: struct<w_warehouse_sk:int>

(41) InputAdapter
Input [1]: [w_warehouse_sk#12]
Arguments: [#12]

(42) NativeFilter
Input [1]: [#12#12]
Condition : isnotnull(w_warehouse_sk#12)

(43) NativeShuffleExchange
Input [1]: [#12#12]
Arguments: hashpartitioning(w_warehouse_sk#12, 100), ENSURE_REQUIREMENTS, [plan_id=6]

(44) ShuffleQueryStage
Output [1]: [#12#12]
Arguments: X

(45) AQEShuffleRead
Input [1]: [#12#12]
Arguments: coalesced

(46) InputAdapter
Input [1]: [#12#12]

(47) NativeSort
Input [1]: [#12#12]
Arguments: [w_warehouse_sk#12 ASC NULLS FIRST], false

(48) NativeSortMergeJoin
Left keys [1]: [inv_warehouse_sk#3]
Right keys [1]: [w_warehouse_sk#12]
Join type: Inner
Join condition: None

(49) NativeProject
Output [5]: [inv_quantity_on_hand#4, i_product_name#11, i_brand#8, i_class#9, i_category#10]
Input [7]: [inv_warehouse_sk#3, inv_quantity_on_hand#4, i_brand#8, i_class#9, i_category#10, i_product_name#11, #12#12]

(50) NativeExpand
Input [5]: [inv_quantity_on_hand#4, i_product_name#11, i_brand#8, i_class#9, i_category#10]
Arguments: [[inv_quantity_on_hand#4, i_product_name#11, i_brand#8, i_class#9, i_category#10, 0], [inv_quantity_on_hand#4, i_product_name#11, i_brand#8, i_class#9, null, 1], [inv_quantity_on_hand#4, i_product_name#11, i_brand#8, null, null, 3], [inv_quantity_on_hand#4, i_product_name#11, null, null, null, 7], [inv_quantity_on_hand#4, null, null, null, null, 15]], [inv_quantity_on_hand#4, i_product_name#13, i_brand#14, i_class#15, i_category#16, spark_grouping_id#17]

(51) NativeHashAggregate
Input [6]: [inv_quantity_on_hand#4, i_product_name#13, i_brand#14, i_class#15, i_category#16, spark_grouping_id#17]
Keys [5]: [i_product_name#13, i_brand#14, i_class#15, i_category#16, spark_grouping_id#17]
Functions [1]: [partial_avg(inv_quantity_on_hand#4)]
Aggregate Attributes [2]: [sum#18, count#19]
Results [7]: [i_product_name#13, i_brand#14, i_class#15, i_category#16, spark_grouping_id#17, #20, #21]

(52) NativeShuffleExchange
Input [7]: [i_product_name#13, i_brand#14, i_class#15, i_category#16, spark_grouping_id#17, #20, #21]
Arguments: hashpartitioning(i_product_name#13, i_brand#14, i_class#15, i_category#16, spark_grouping_id#17, 100), ENSURE_REQUIREMENTS, [plan_id=7]

(53) ShuffleQueryStage
Output [7]: [i_product_name#13, i_brand#14, i_class#15, i_category#16, spark_grouping_id#17, #20, #21]
Arguments: X

(54) AQEShuffleRead
Input [7]: [i_product_name#13, i_brand#14, i_class#15, i_category#16, spark_grouping_id#17, #20, #21]
Arguments: coalesced

(55) InputAdapter
Input [7]: [i_product_name#13, i_brand#14, i_class#15, i_category#16, spark_grouping_id#17, #20, #21]

(56) NativeHashAggregate
Input [7]: [i_product_name#13, i_brand#14, i_class#15, i_category#16, spark_grouping_id#17, #20, #21]
Keys [5]: [i_product_name#13, i_brand#14, i_class#15, i_category#16, spark_grouping_id#17]
Functions [1]: [avg(inv_quantity_on_hand#4)]
Aggregate Attributes [1]: [avg(inv_quantity_on_hand#4)#22]
Results [6]: [i_product_name#13, i_brand#14, i_class#15, i_category#16, spark_grouping_id#17, avg(inv_quantity_on_hand#4)#22]

(57) NativeProject
Output [5]: [i_product_name#13, i_brand#14, i_class#15, i_category#16, avg(inv_quantity_on_hand#4)#22 AS qoh#23]
Input [6]: [i_product_name#13, i_brand#14, i_class#15, i_category#16, spark_grouping_id#17, avg(inv_quantity_on_hand#4)#22]

(58) NativeTakeOrdered
Input [5]: [i_product_name#13, i_brand#14, i_class#15, i_category#16, qoh#23]
Arguments: X, X, [qoh#23 ASC NULLS FIRST, i_product_name#13 ASC NULLS FIRST, i_brand#14 ASC NULLS FIRST, i_class#15 ASC NULLS FIRST, i_category#16 ASC NULLS FIRST]

(59) Scan parquet
Output [4]: [inv_date_sk#1, inv_item_sk#2, inv_warehouse_sk#3, inv_quantity_on_hand#4]
Batched: true
Location: InMemoryFileIndex [file:/<warehouse_dir>]
PushedFilters: [IsNotNull(inv_date_sk), IsNotNull(inv_item_sk), IsNotNull(inv_warehouse_sk)]
ReadSchema: struct<inv_date_sk:int,inv_item_sk:int,inv_warehouse_sk:int,inv_quantity_on_hand:int>

(60) Filter
Input [4]: [inv_date_sk#1, inv_item_sk#2, inv_warehouse_sk#3, inv_quantity_on_hand#4]
Condition : ((isnotnull(inv_date_sk#1) AND isnotnull(inv_item_sk#2)) AND isnotnull(inv_warehouse_sk#3))

(61) Exchange
Input [4]: [inv_date_sk#1, inv_item_sk#2, inv_warehouse_sk#3, inv_quantity_on_hand#4]
Arguments: hashpartitioning(inv_date_sk#1, 100), ENSURE_REQUIREMENTS, [plan_id=8]

(62) Sort
Input [4]: [inv_date_sk#1, inv_item_sk#2, inv_warehouse_sk#3, inv_quantity_on_hand#4]
Arguments: [inv_date_sk#1 ASC NULLS FIRST], false, 0

(63) Scan parquet
Output [2]: [d_date_sk#5, d_month_seq#6]
Batched: true
Location: InMemoryFileIndex [file:/<warehouse_dir>]
PushedFilters: [IsNotNull(d_month_seq), GreaterThanOrEqual(d_month_seq,1200), LessThanOrEqual(d_month_seq,1211), IsNotNull(d_date_sk)]
ReadSchema: struct<d_date_sk:int,d_month_seq:int>

(64) Filter
Input [2]: [d_date_sk#5, d_month_seq#6]
Condition : (((isnotnull(d_month_seq#6) AND (d_month_seq#6 >= 1200)) AND (d_month_seq#6 <= 1211)) AND isnotnull(d_date_sk#5))

(65) Project
Output [1]: [d_date_sk#5]
Input [2]: [d_date_sk#5, d_month_seq#6]

(66) Exchange
Input [1]: [d_date_sk#5]
Arguments: hashpartitioning(d_date_sk#5, 100), ENSURE_REQUIREMENTS, [plan_id=9]

(67) Sort
Input [1]: [d_date_sk#5]
Arguments: [d_date_sk#5 ASC NULLS FIRST], false, 0

(68) SortMergeJoin
Left keys [1]: [inv_date_sk#1]
Right keys [1]: [d_date_sk#5]
Join type: Inner
Join condition: None

(69) Project
Output [3]: [inv_item_sk#2, inv_warehouse_sk#3, inv_quantity_on_hand#4]
Input [5]: [inv_date_sk#1, inv_item_sk#2, inv_warehouse_sk#3, inv_quantity_on_hand#4, d_date_sk#5]

(70) Exchange
Input [3]: [inv_item_sk#2, inv_warehouse_sk#3, inv_quantity_on_hand#4]
Arguments: hashpartitioning(inv_item_sk#2, 100), ENSURE_REQUIREMENTS, [plan_id=10]

(71) Sort
Input [3]: [inv_item_sk#2, inv_warehouse_sk#3, inv_quantity_on_hand#4]
Arguments: [inv_item_sk#2 ASC NULLS FIRST], false, 0

(72) Scan parquet
Output [5]: [i_item_sk#7, i_brand#8, i_class#9, i_category#10, i_product_name#11]
Batched: true
Location: InMemoryFileIndex [file:/<warehouse_dir>]
PushedFilters: [IsNotNull(i_item_sk)]
ReadSchema: struct<i_item_sk:int,i_brand:string,i_class:string,i_category:string,i_product_name:string>

(73) Filter
Input [5]: [i_item_sk#7, i_brand#8, i_class#9, i_category#10, i_product_name#11]
Condition : isnotnull(i_item_sk#7)

(74) Exchange
Input [5]: [i_item_sk#7, i_brand#8, i_class#9, i_category#10, i_product_name#11]
Arguments: hashpartitioning(i_item_sk#7, 100), ENSURE_REQUIREMENTS, [plan_id=11]

(75) Sort
Input [5]: [i_item_sk#7, i_brand#8, i_class#9, i_category#10, i_product_name#11]
Arguments: [i_item_sk#7 ASC NULLS FIRST], false, 0

(76) SortMergeJoin
Left keys [1]: [inv_item_sk#2]
Right keys [1]: [i_item_sk#7]
Join type: Inner
Join condition: None

(77) Project
Output [6]: [inv_warehouse_sk#3, inv_quantity_on_hand#4, i_brand#8, i_class#9, i_category#10, i_product_name#11]
Input [8]: [inv_item_sk#2, inv_warehouse_sk#3, inv_quantity_on_hand#4, i_item_sk#7, i_brand#8, i_class#9, i_category#10, i_product_name#11]

(78) Exchange
Input [6]: [inv_warehouse_sk#3, inv_quantity_on_hand#4, i_brand#8, i_class#9, i_category#10, i_product_name#11]
Arguments: hashpartitioning(inv_warehouse_sk#3, 100), ENSURE_REQUIREMENTS, [plan_id=12]

(79) Sort
Input [6]: [inv_warehouse_sk#3, inv_quantity_on_hand#4, i_brand#8, i_class#9, i_category#10, i_product_name#11]
Arguments: [inv_warehouse_sk#3 ASC NULLS FIRST], false, 0

(80) Scan parquet
Output [1]: [w_warehouse_sk#12]
Batched: true
Location: InMemoryFileIndex [file:/<warehouse_dir>]
PushedFilters: [IsNotNull(w_warehouse_sk)]
ReadSchema: struct<w_warehouse_sk:int>

(81) Filter
Input [1]: [w_warehouse_sk#12]
Condition : isnotnull(w_warehouse_sk#12)

(82) Exchange
Input [1]: [w_warehouse_sk#12]
Arguments: hashpartitioning(w_warehouse_sk#12, 100), ENSURE_REQUIREMENTS, [plan_id=13]

(83) Sort
Input [1]: [w_warehouse_sk#12]
Arguments: [w_warehouse_sk#12 ASC NULLS FIRST], false, 0

(84) SortMergeJoin
Left keys [1]: [inv_warehouse_sk#3]
Right keys [1]: [w_warehouse_sk#12]
Join type: Inner
Join condition: None

(85) Project
Output [5]: [inv_quantity_on_hand#4, i_product_name#11, i_brand#8, i_class#9, i_category#10]
Input [7]: [inv_warehouse_sk#3, inv_quantity_on_hand#4, i_brand#8, i_class#9, i_category#10, i_product_name#11, w_warehouse_sk#12]

(86) Expand
Input [5]: [inv_quantity_on_hand#4, i_product_name#11, i_brand#8, i_class#9, i_category#10]
Arguments: [[inv_quantity_on_hand#4, i_product_name#11, i_brand#8, i_class#9, i_category#10, 0], [inv_quantity_on_hand#4, i_product_name#11, i_brand#8, i_class#9, null, 1], [inv_quantity_on_hand#4, i_product_name#11, i_brand#8, null, null, 3], [inv_quantity_on_hand#4, i_product_name#11, null, null, null, 7], [inv_quantity_on_hand#4, null, null, null, null, 15]], [inv_quantity_on_hand#4, i_product_name#13, i_brand#14, i_class#15, i_category#16, spark_grouping_id#17]

(87) HashAggregate
Input [6]: [inv_quantity_on_hand#4, i_product_name#13, i_brand#14, i_class#15, i_category#16, spark_grouping_id#17]
Keys [5]: [i_product_name#13, i_brand#14, i_class#15, i_category#16, spark_grouping_id#17]
Functions [1]: [partial_avg(inv_quantity_on_hand#4)]
Aggregate Attributes [2]: [sum#18, count#19]
Results [7]: [i_product_name#13, i_brand#14, i_class#15, i_category#16, spark_grouping_id#17, sum#24, count#25]

(88) Exchange
Input [7]: [i_product_name#13, i_brand#14, i_class#15, i_category#16, spark_grouping_id#17, sum#24, count#25]
Arguments: hashpartitioning(i_product_name#13, i_brand#14, i_class#15, i_category#16, spark_grouping_id#17, 100), ENSURE_REQUIREMENTS, [plan_id=14]

(89) HashAggregate
Input [7]: [i_product_name#13, i_brand#14, i_class#15, i_category#16, spark_grouping_id#17, sum#24, count#25]
Keys [5]: [i_product_name#13, i_brand#14, i_class#15, i_category#16, spark_grouping_id#17]
Functions [1]: [avg(inv_quantity_on_hand#4)]
Aggregate Attributes [1]: [avg(inv_quantity_on_hand#4)#22]
Results [5]: [i_product_name#13, i_brand#14, i_class#15, i_category#16, avg(inv_quantity_on_hand#4)#22 AS qoh#23]

(90) TakeOrderedAndProject
Input [5]: [i_product_name#13, i_brand#14, i_class#15, i_category#16, qoh#23]
Arguments: X, [qoh#23 ASC NULLS FIRST, i_product_name#13 ASC NULLS FIRST, i_brand#14 ASC NULLS FIRST, i_class#15 ASC NULLS FIRST, i_category#16 ASC NULLS FIRST], [i_product_name#13, i_brand#14, i_class#15, i_category#16, qoh#23]

(91) AdaptiveSparkPlan
Output [5]: [i_product_name#13, i_brand#14, i_class#15, i_category#16, qoh#23]
Arguments: isFinalPlan=true

