== Physical Plan ==
AdaptiveSparkPlan (148)
+- == Final Plan ==
   NativeFilter (95)
   +- NativeProject (94)
      +- NativeHashAggregate (93)
         +- InputAdapter (92)
            +- AQEShuffleRead (91)
               +- ShuffleQueryStage (90), Statistics(X)
                  +- NativeShuffleExchange (89)
                     +- NativeHashAggregate (88)
                        +- NativeProject (87)
                           +- NativeHashAggregate (86)
                              +- InputAdapter (85)
                                 +- AQEShuffleRead (84)
                                    +- ShuffleQueryStage (83), Statistics(X)
                                       +- NativeShuffleExchange (82)
                                          +- NativeHashAggregate (81)
                                             +- NativeProject (80)
                                                +- NativeProject (79)
                                                   +- NativeSortMergeJoin Inner (78)
                                                      :- NativeSort (69)
                                                      :  +- InputAdapter (68)
                                                      :     +- AQEShuffleRead (67)
                                                      :        +- ShuffleQueryStage (66), Statistics(X)
                                                      :           +- NativeShuffleExchange (65)
                                                      :              +- NativeProject (64)
                                                      :                 +- NativeSortMergeJoin Inner (63)
                                                      :                    :- NativeSort (54)
                                                      :                    :  +- InputAdapter (53)
                                                      :                    :     +- AQEShuffleRead (52)
                                                      :                    :        +- ShuffleQueryStage (51), Statistics(X)
                                                      :                    :           +- NativeShuffleExchange (50)
                                                      :                    :              +- NativeProject (49)
                                                      :                    :                 +- NativeSortMergeJoin Inner (48)
                                                      :                    :                    :- NativeSort (39)
                                                      :                    :                    :  +- InputAdapter (38)
                                                      :                    :                    :     +- AQEShuffleRead (37)
                                                      :                    :                    :        +- ShuffleQueryStage (36), Statistics(X)
                                                      :                    :                    :           +- NativeShuffleExchange (35)
                                                      :                    :                    :              +- NativeProject (34)
                                                      :                    :                    :                 +- NativeSortMergeJoin Inner (33)
                                                      :                    :                    :                    :- NativeSort (23)
                                                      :                    :                    :                    :  +- InputAdapter (22)
                                                      :                    :                    :                    :     +- AQEShuffleRead (21)
                                                      :                    :                    :                    :        +- ShuffleQueryStage (20), Statistics(X)
                                                      :                    :                    :                    :           +- NativeShuffleExchange (19)
                                                      :                    :                    :                    :              +- NativeProject (18)
                                                      :                    :                    :                    :                 +- NativeSortMergeJoin Inner (17)
                                                      :                    :                    :                    :                    :- NativeSort (8)
                                                      :                    :                    :                    :                    :  +- InputAdapter (7)
                                                      :                    :                    :                    :                    :     +- AQEShuffleRead (6)
                                                      :                    :                    :                    :                    :        +- ShuffleQueryStage (5), Statistics(X)
                                                      :                    :                    :                    :                    :           +- NativeShuffleExchange (4)
                                                      :                    :                    :                    :                    :              +- NativeFilter (3)
                                                      :                    :                    :                    :                    :                 +- InputAdapter (2)
                                                      :                    :                    :                    :                    :                    +- NativeParquetScan  (1)
                                                      :                    :                    :                    :                    +- NativeSort (16)
                                                      :                    :                    :                    :                       +- InputAdapter (15)
                                                      :                    :                    :                    :                          +- AQEShuffleRead (14)
                                                      :                    :                    :                    :                             +- ShuffleQueryStage (13), Statistics(X)
                                                      :                    :                    :                    :                                +- NativeShuffleExchange (12)
                                                      :                    :                    :                    :                                   +- NativeFilter (11)
                                                      :                    :                    :                    :                                      +- InputAdapter (10)
                                                      :                    :                    :                    :                                         +- NativeParquetScan  (9)
                                                      :                    :                    :                    +- NativeSort (32)
                                                      :                    :                    :                       +- InputAdapter (31)
                                                      :                    :                    :                          +- AQEShuffleRead (30)
                                                      :                    :                    :                             +- ShuffleQueryStage (29), Statistics(X)
                                                      :                    :                    :                                +- NativeShuffleExchange (28)
                                                      :                    :                    :                                   +- NativeProject (27)
                                                      :                    :                    :                                      +- NativeFilter (26)
                                                      :                    :                    :                                         +- InputAdapter (25)
                                                      :                    :                    :                                            +- NativeParquetScan  (24)
                                                      :                    :                    +- NativeSort (47)
                                                      :                    :                       +- InputAdapter (46)
                                                      :                    :                          +- AQEShuffleRead (45)
                                                      :                    :                             +- ShuffleQueryStage (44), Statistics(X)
                                                      :                    :                                +- NativeShuffleExchange (43)
                                                      :                    :                                   +- NativeFilter (42)
                                                      :                    :                                      +- InputAdapter (41)
                                                      :                    :                                         +- NativeParquetScan  (40)
                                                      :                    +- NativeSort (62)
                                                      :                       +- InputAdapter (61)
                                                      :                          +- AQEShuffleRead (60)
                                                      :                             +- ShuffleQueryStage (59), Statistics(X)
                                                      :                                +- NativeShuffleExchange (58)
                                                      :                                   +- NativeFilter (57)
                                                      :                                      +- InputAdapter (56)
                                                      :                                         +- NativeParquetScan  (55)
                                                      +- NativeSort (77)
                                                         +- InputAdapter (76)
                                                            +- AQEShuffleRead (75)
                                                               +- ShuffleQueryStage (74), Statistics(X)
                                                                  +- NativeShuffleExchange (73)
                                                                     +- NativeFilter (72)
                                                                        +- InputAdapter (71)
                                                                           +- NativeParquetScan  (70)
+- == Initial Plan ==
   Sort (147)
   +- Exchange (146)
      +- Filter (145)
         +- HashAggregate (144)
            +- Exchange (143)
               +- HashAggregate (142)
                  +- HashAggregate (141)
                     +- Exchange (140)
                        +- HashAggregate (139)
                           +- Project (138)
                              +- SortMergeJoin Inner (137)
                                 :- Sort (132)
                                 :  +- Exchange (131)
                                 :     +- Project (130)
                                 :        +- SortMergeJoin Inner (129)
                                 :           :- Sort (124)
                                 :           :  +- Exchange (123)
                                 :           :     +- Project (122)
                                 :           :        +- SortMergeJoin Inner (121)
                                 :           :           :- Sort (116)
                                 :           :           :  +- Exchange (115)
                                 :           :           :     +- Project (114)
                                 :           :           :        +- SortMergeJoin Inner (113)
                                 :           :           :           :- Sort (107)
                                 :           :           :           :  +- Exchange (106)
                                 :           :           :           :     +- Project (105)
                                 :           :           :           :        +- SortMergeJoin Inner (104)
                                 :           :           :           :           :- Sort (99)
                                 :           :           :           :           :  +- Exchange (98)
                                 :           :           :           :           :     +- Filter (97)
                                 :           :           :           :           :        +- Scan parquet (96)
                                 :           :           :           :           +- Sort (103)
                                 :           :           :           :              +- Exchange (102)
                                 :           :           :           :                 +- Filter (101)
                                 :           :           :           :                    +- Scan parquet (100)
                                 :           :           :           +- Sort (112)
                                 :           :           :              +- Exchange (111)
                                 :           :           :                 +- Project (110)
                                 :           :           :                    +- Filter (109)
                                 :           :           :                       +- Scan parquet (108)
                                 :           :           +- Sort (120)
                                 :           :              +- Exchange (119)
                                 :           :                 +- Filter (118)
                                 :           :                    +- Scan parquet (117)
                                 :           +- Sort (128)
                                 :              +- Exchange (127)
                                 :                 +- Filter (126)
                                 :                    +- Scan parquet (125)
                                 +- Sort (136)
                                    +- Exchange (135)
                                       +- Filter (134)
                                          +- Scan parquet (133)


(96) Scan parquet
Output [5]: [ss_item_sk#1, ss_customer_sk#2, ss_store_sk#3, ss_ticket_number#4, ss_net_paid#5]
Batched: true
Location: InMemoryFileIndex [file:/<warehouse_dir>]
PushedFilters: [IsNotNull(ss_ticket_number), IsNotNull(ss_item_sk), IsNotNull(ss_store_sk), IsNotNull(ss_customer_sk)]
ReadSchema: struct<ss_item_sk:int,ss_customer_sk:int,ss_store_sk:int,ss_ticket_number:int,ss_net_paid:decimal(7,2)>

(2) InputAdapter
Input [5]: [ss_item_sk#1, ss_customer_sk#2, ss_store_sk#3, ss_ticket_number#4, ss_net_paid#5]
Arguments: [#1, #2, #3, #4, #5]

(3) NativeFilter
Input [5]: [#1#1, #2#2, #3#3, #4#4, #5#5]
Condition : (((isnotnull(ss_ticket_number#4) AND isnotnull(ss_item_sk#1)) AND isnotnull(ss_store_sk#3)) AND isnotnull(ss_customer_sk#2))

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

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

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

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

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

(100) Scan parquet
Output [2]: [sr_item_sk#6, sr_ticket_number#7]
Batched: true
Location: InMemoryFileIndex [file:/<warehouse_dir>]
PushedFilters: [IsNotNull(sr_ticket_number), IsNotNull(sr_item_sk)]
ReadSchema: struct<sr_item_sk:int,sr_ticket_number:int>

(10) InputAdapter
Input [2]: [sr_item_sk#6, sr_ticket_number#7]
Arguments: [#6, #7]

(11) NativeFilter
Input [2]: [#6#6, #7#7]
Condition : (isnotnull(sr_ticket_number#7) AND isnotnull(sr_item_sk#6))

(12) NativeShuffleExchange
Input [2]: [#6#6, #7#7]
Arguments: hashpartitioning(sr_ticket_number#7, sr_item_sk#6, 100), ENSURE_REQUIREMENTS, [plan_id=2]

(13) ShuffleQueryStage
Output [2]: [#6#6, #7#7]
Arguments: X

(14) AQEShuffleRead
Input [2]: [#6#6, #7#7]
Arguments: coalesced

(15) InputAdapter
Input [2]: [#6#6, #7#7]

(16) NativeSort
Input [2]: [#6#6, #7#7]
Arguments: [sr_ticket_number#7 ASC NULLS FIRST, sr_item_sk#6 ASC NULLS FIRST], false

(17) NativeSortMergeJoin
Left keys [2]: [ss_ticket_number#4, ss_item_sk#1]
Right keys [2]: [sr_ticket_number#7, sr_item_sk#6]
Join type: Inner
Join condition: None

(18) NativeProject
Output [4]: [ss_item_sk#1, ss_customer_sk#2, ss_store_sk#3, ss_net_paid#5]
Input [7]: [#1#1, #2#2, #3#3, #4#4, #5#5, #6#6, #7#7]

(19) NativeShuffleExchange
Input [4]: [ss_item_sk#1, ss_customer_sk#2, ss_store_sk#3, ss_net_paid#5]
Arguments: hashpartitioning(ss_store_sk#3, 100), ENSURE_REQUIREMENTS, [plan_id=3]

(20) ShuffleQueryStage
Output [4]: [ss_item_sk#1, ss_customer_sk#2, ss_store_sk#3, ss_net_paid#5]
Arguments: X

(21) AQEShuffleRead
Input [4]: [ss_item_sk#1, ss_customer_sk#2, ss_store_sk#3, ss_net_paid#5]
Arguments: coalesced

(22) InputAdapter
Input [4]: [ss_item_sk#1, ss_customer_sk#2, ss_store_sk#3, ss_net_paid#5]

(23) NativeSort
Input [4]: [ss_item_sk#1, ss_customer_sk#2, ss_store_sk#3, ss_net_paid#5]
Arguments: [ss_store_sk#3 ASC NULLS FIRST], false

(108) Scan parquet
Output [5]: [s_store_sk#8, s_store_name#9, s_market_id#10, s_state#11, s_zip#12]
Batched: true
Location: InMemoryFileIndex [file:/<warehouse_dir>]
PushedFilters: [IsNotNull(s_market_id), EqualTo(s_market_id,8), IsNotNull(s_store_sk), IsNotNull(s_zip)]
ReadSchema: struct<s_store_sk:int,s_store_name:string,s_market_id:int,s_state:string,s_zip:string>

(25) InputAdapter
Input [5]: [s_store_sk#8, s_store_name#9, s_market_id#10, s_state#11, s_zip#12]
Arguments: [#8, #9, #10, #11, #12]

(26) NativeFilter
Input [5]: [#8#8, #9#9, #10#10, #11#11, #12#12]
Condition : (((isnotnull(s_market_id#10) AND (s_market_id#10 = 8)) AND isnotnull(s_store_sk#8)) AND isnotnull(s_zip#12))

(27) NativeProject
Output [4]: [s_store_sk#8, s_store_name#9, s_state#11, s_zip#12]
Input [5]: [#8#8, #9#9, #10#10, #11#11, #12#12]

(28) NativeShuffleExchange
Input [4]: [s_store_sk#8, s_store_name#9, s_state#11, s_zip#12]
Arguments: hashpartitioning(s_store_sk#8, 100), ENSURE_REQUIREMENTS, [plan_id=4]

(29) ShuffleQueryStage
Output [4]: [s_store_sk#8, s_store_name#9, s_state#11, s_zip#12]
Arguments: X

(30) AQEShuffleRead
Input [4]: [s_store_sk#8, s_store_name#9, s_state#11, s_zip#12]
Arguments: coalesced

(31) InputAdapter
Input [4]: [s_store_sk#8, s_store_name#9, s_state#11, s_zip#12]

(32) NativeSort
Input [4]: [s_store_sk#8, s_store_name#9, s_state#11, s_zip#12]
Arguments: [s_store_sk#8 ASC NULLS FIRST], false

(33) NativeSortMergeJoin
Left keys [1]: [ss_store_sk#3]
Right keys [1]: [s_store_sk#8]
Join type: Inner
Join condition: None

(34) NativeProject
Output [6]: [ss_item_sk#1, ss_customer_sk#2, ss_net_paid#5, s_store_name#9, s_state#11, s_zip#12]
Input [8]: [ss_item_sk#1, ss_customer_sk#2, ss_store_sk#3, ss_net_paid#5, s_store_sk#8, s_store_name#9, s_state#11, s_zip#12]

(35) NativeShuffleExchange
Input [6]: [ss_item_sk#1, ss_customer_sk#2, ss_net_paid#5, s_store_name#9, s_state#11, s_zip#12]
Arguments: hashpartitioning(ss_item_sk#1, 100), ENSURE_REQUIREMENTS, [plan_id=5]

(36) ShuffleQueryStage
Output [6]: [ss_item_sk#1, ss_customer_sk#2, ss_net_paid#5, s_store_name#9, s_state#11, s_zip#12]
Arguments: X

(37) AQEShuffleRead
Input [6]: [ss_item_sk#1, ss_customer_sk#2, ss_net_paid#5, s_store_name#9, s_state#11, s_zip#12]
Arguments: coalesced

(38) InputAdapter
Input [6]: [ss_item_sk#1, ss_customer_sk#2, ss_net_paid#5, s_store_name#9, s_state#11, s_zip#12]

(39) NativeSort
Input [6]: [ss_item_sk#1, ss_customer_sk#2, ss_net_paid#5, s_store_name#9, s_state#11, s_zip#12]
Arguments: [ss_item_sk#1 ASC NULLS FIRST], false

(117) Scan parquet
Output [6]: [i_item_sk#13, i_current_price#14, i_size#15, i_color#16, i_units#17, i_manager_id#18]
Batched: true
Location: InMemoryFileIndex [file:/<warehouse_dir>]
PushedFilters: [IsNotNull(i_color), EqualTo(i_color,chiffon), IsNotNull(i_item_sk)]
ReadSchema: struct<i_item_sk:int,i_current_price:decimal(7,2),i_size:string,i_color:string,i_units:string,i_manager_id:int>

(41) InputAdapter
Input [6]: [i_item_sk#13, i_current_price#14, i_size#15, i_color#16, i_units#17, i_manager_id#18]
Arguments: [#13, #14, #15, #16, #17, #18]

(42) NativeFilter
Input [6]: [#13#13, #14#14, #15#15, #16#16, #17#17, #18#18]
Condition : ((isnotnull(i_color#16) AND (i_color#16 = chiffon)) AND isnotnull(i_item_sk#13))

(43) NativeShuffleExchange
Input [6]: [#13#13, #14#14, #15#15, #16#16, #17#17, #18#18]
Arguments: hashpartitioning(i_item_sk#13, 100), ENSURE_REQUIREMENTS, [plan_id=6]

(44) ShuffleQueryStage
Output [6]: [#13#13, #14#14, #15#15, #16#16, #17#17, #18#18]
Arguments: X

(45) AQEShuffleRead
Input [6]: [#13#13, #14#14, #15#15, #16#16, #17#17, #18#18]
Arguments: coalesced

(46) InputAdapter
Input [6]: [#13#13, #14#14, #15#15, #16#16, #17#17, #18#18]

(47) NativeSort
Input [6]: [#13#13, #14#14, #15#15, #16#16, #17#17, #18#18]
Arguments: [i_item_sk#13 ASC NULLS FIRST], false

(48) NativeSortMergeJoin
Left keys [1]: [ss_item_sk#1]
Right keys [1]: [i_item_sk#13]
Join type: Inner
Join condition: None

(49) NativeProject
Output [10]: [ss_customer_sk#2, ss_net_paid#5, s_store_name#9, s_state#11, s_zip#12, i_current_price#14, i_size#15, i_color#16, i_units#17, i_manager_id#18]
Input [12]: [ss_item_sk#1, ss_customer_sk#2, ss_net_paid#5, s_store_name#9, s_state#11, s_zip#12, #13#13, #14#14, #15#15, #16#16, #17#17, #18#18]

(50) NativeShuffleExchange
Input [10]: [ss_customer_sk#2, ss_net_paid#5, s_store_name#9, s_state#11, s_zip#12, i_current_price#14, i_size#15, i_color#16, i_units#17, i_manager_id#18]
Arguments: hashpartitioning(ss_customer_sk#2, 100), ENSURE_REQUIREMENTS, [plan_id=7]

(51) ShuffleQueryStage
Output [10]: [ss_customer_sk#2, ss_net_paid#5, s_store_name#9, s_state#11, s_zip#12, i_current_price#14, i_size#15, i_color#16, i_units#17, i_manager_id#18]
Arguments: X

(52) AQEShuffleRead
Input [10]: [ss_customer_sk#2, ss_net_paid#5, s_store_name#9, s_state#11, s_zip#12, i_current_price#14, i_size#15, i_color#16, i_units#17, i_manager_id#18]
Arguments: coalesced

(53) InputAdapter
Input [10]: [ss_customer_sk#2, ss_net_paid#5, s_store_name#9, s_state#11, s_zip#12, i_current_price#14, i_size#15, i_color#16, i_units#17, i_manager_id#18]

(54) NativeSort
Input [10]: [ss_customer_sk#2, ss_net_paid#5, s_store_name#9, s_state#11, s_zip#12, i_current_price#14, i_size#15, i_color#16, i_units#17, i_manager_id#18]
Arguments: [ss_customer_sk#2 ASC NULLS FIRST], false

(125) Scan parquet
Output [4]: [c_customer_sk#19, c_first_name#20, c_last_name#21, c_birth_country#22]
Batched: true
Location: InMemoryFileIndex [file:/<warehouse_dir>]
PushedFilters: [IsNotNull(c_customer_sk), IsNotNull(c_birth_country)]
ReadSchema: struct<c_customer_sk:int,c_first_name:string,c_last_name:string,c_birth_country:string>

(56) InputAdapter
Input [4]: [c_customer_sk#19, c_first_name#20, c_last_name#21, c_birth_country#22]
Arguments: [#19, #20, #21, #22]

(57) NativeFilter
Input [4]: [#19#19, #20#20, #21#21, #22#22]
Condition : (isnotnull(c_customer_sk#19) AND isnotnull(c_birth_country#22))

(58) NativeShuffleExchange
Input [4]: [#19#19, #20#20, #21#21, #22#22]
Arguments: hashpartitioning(c_customer_sk#19, 100), ENSURE_REQUIREMENTS, [plan_id=8]

(59) ShuffleQueryStage
Output [4]: [#19#19, #20#20, #21#21, #22#22]
Arguments: X

(60) AQEShuffleRead
Input [4]: [#19#19, #20#20, #21#21, #22#22]
Arguments: coalesced

(61) InputAdapter
Input [4]: [#19#19, #20#20, #21#21, #22#22]

(62) NativeSort
Input [4]: [#19#19, #20#20, #21#21, #22#22]
Arguments: [c_customer_sk#19 ASC NULLS FIRST], false

(63) NativeSortMergeJoin
Left keys [1]: [ss_customer_sk#2]
Right keys [1]: [c_customer_sk#19]
Join type: Inner
Join condition: None

(64) NativeProject
Output [12]: [ss_net_paid#5, s_store_name#9, s_state#11, s_zip#12, i_current_price#14, i_size#15, i_color#16, i_units#17, i_manager_id#18, c_first_name#20, c_last_name#21, c_birth_country#22]
Input [14]: [ss_customer_sk#2, ss_net_paid#5, s_store_name#9, s_state#11, s_zip#12, i_current_price#14, i_size#15, i_color#16, i_units#17, i_manager_id#18, #19#19, #20#20, #21#21, #22#22]

(65) NativeShuffleExchange
Input [12]: [ss_net_paid#5, s_store_name#9, s_state#11, s_zip#12, i_current_price#14, i_size#15, i_color#16, i_units#17, i_manager_id#18, c_first_name#20, c_last_name#21, c_birth_country#22]
Arguments: hashpartitioning(c_birth_country#22, s_zip#12, 100), ENSURE_REQUIREMENTS, [plan_id=9]

(66) ShuffleQueryStage
Output [12]: [ss_net_paid#5, s_store_name#9, s_state#11, s_zip#12, i_current_price#14, i_size#15, i_color#16, i_units#17, i_manager_id#18, c_first_name#20, c_last_name#21, c_birth_country#22]
Arguments: X

(67) AQEShuffleRead
Input [12]: [ss_net_paid#5, s_store_name#9, s_state#11, s_zip#12, i_current_price#14, i_size#15, i_color#16, i_units#17, i_manager_id#18, c_first_name#20, c_last_name#21, c_birth_country#22]
Arguments: coalesced

(68) InputAdapter
Input [12]: [ss_net_paid#5, s_store_name#9, s_state#11, s_zip#12, i_current_price#14, i_size#15, i_color#16, i_units#17, i_manager_id#18, c_first_name#20, c_last_name#21, c_birth_country#22]

(69) NativeSort
Input [12]: [ss_net_paid#5, s_store_name#9, s_state#11, s_zip#12, i_current_price#14, i_size#15, i_color#16, i_units#17, i_manager_id#18, c_first_name#20, c_last_name#21, c_birth_country#22]
Arguments: [c_birth_country#22 ASC NULLS FIRST, s_zip#12 ASC NULLS FIRST], false

(133) Scan parquet
Output [3]: [ca_state#23, ca_zip#24, ca_country#25]
Batched: true
Location: InMemoryFileIndex [file:/<warehouse_dir>]
PushedFilters: [IsNotNull(ca_country), IsNotNull(ca_zip)]
ReadSchema: struct<ca_state:string,ca_zip:string,ca_country:string>

(71) InputAdapter
Input [3]: [ca_state#23, ca_zip#24, ca_country#25]
Arguments: [#23, #24, #25]

(72) NativeFilter
Input [3]: [#23#23, #24#24, #25#25]
Condition : (isnotnull(ca_country#25) AND isnotnull(ca_zip#24))

(73) NativeShuffleExchange
Input [3]: [#23#23, #24#24, #25#25]
Arguments: hashpartitioning(upper(ca_country#25), ca_zip#24, 100), ENSURE_REQUIREMENTS, [plan_id=10]

(74) ShuffleQueryStage
Output [3]: [#23#23, #24#24, #25#25]
Arguments: X

(75) AQEShuffleRead
Input [3]: [#23#23, #24#24, #25#25]
Arguments: coalesced

(76) InputAdapter
Input [3]: [#23#23, #24#24, #25#25]

(77) NativeSort
Input [3]: [#23#23, #24#24, #25#25]
Arguments: [upper(ca_country#25) ASC NULLS FIRST, ca_zip#24 ASC NULLS FIRST], false

(78) NativeSortMergeJoin
Left keys [2]: [c_birth_country#22, s_zip#12]
Right keys [2]: [upper(ca_country#25), ca_zip#24]
Join type: Inner
Join condition: None

(79) NativeProject
Output [11]: [ss_net_paid#5, s_store_name#9, s_state#11, i_current_price#14, i_size#15, i_color#16, i_units#17, i_manager_id#18, c_first_name#20, c_last_name#21, ca_state#23]
Input [15]: [ss_net_paid#5, s_store_name#9, s_state#11, s_zip#12, i_current_price#14, i_size#15, i_color#16, i_units#17, i_manager_id#18, c_first_name#20, c_last_name#21, c_birth_country#22, #23#23, #24#24, #25#25]

(80) NativeProject
Output [11]: [c_last_name#21 AS c_last_name#21, c_first_name#20 AS c_first_name#20, s_store_name#9 AS s_store_name#9, ca_state#23 AS ca_state#23, s_state#11 AS s_state#11, i_color#16 AS i_color#16, i_current_price#14 AS i_current_price#14, i_manager_id#18 AS i_manager_id#18, i_units#17 AS i_units#17, i_size#15 AS i_size#15, UnscaledValue(ss_net_paid#5) AS _c10#26]
Input [11]: [ss_net_paid#5, s_store_name#9, s_state#11, i_current_price#14, i_size#15, i_color#16, i_units#17, i_manager_id#18, c_first_name#20, c_last_name#21, ca_state#23]

(81) NativeHashAggregate
Input [11]: [c_last_name#21, c_first_name#20, s_store_name#9, ca_state#23, s_state#11, i_color#16, i_current_price#14, i_manager_id#18, i_units#17, i_size#15, _c10#26]
Keys [10]: [c_last_name#21, c_first_name#20, s_store_name#9, ca_state#23, s_state#11, i_color#16, i_current_price#14, i_manager_id#18, i_units#17, i_size#15]
Functions [1]: [partial_sum(_c10#26)]
Aggregate Attributes [1]: [sum#27]
Results [11]: [c_last_name#21, c_first_name#20, s_store_name#9, ca_state#23, s_state#11, i_color#16, i_current_price#14, i_manager_id#18, i_units#17, i_size#15, #28]

(82) NativeShuffleExchange
Input [11]: [c_last_name#21, c_first_name#20, s_store_name#9, ca_state#23, s_state#11, i_color#16, i_current_price#14, i_manager_id#18, i_units#17, i_size#15, #28]
Arguments: hashpartitioning(c_last_name#21, c_first_name#20, s_store_name#9, ca_state#23, s_state#11, i_color#16, i_current_price#14, i_manager_id#18, i_units#17, i_size#15, 100), ENSURE_REQUIREMENTS, [plan_id=11]

(83) ShuffleQueryStage
Output [11]: [c_last_name#21, c_first_name#20, s_store_name#9, ca_state#23, s_state#11, i_color#16, i_current_price#14, i_manager_id#18, i_units#17, i_size#15, #28]
Arguments: X

(84) AQEShuffleRead
Input [11]: [c_last_name#21, c_first_name#20, s_store_name#9, ca_state#23, s_state#11, i_color#16, i_current_price#14, i_manager_id#18, i_units#17, i_size#15, #28]
Arguments: coalesced

(85) InputAdapter
Input [11]: [c_last_name#21, c_first_name#20, s_store_name#9, ca_state#23, s_state#11, i_color#16, i_current_price#14, i_manager_id#18, i_units#17, i_size#15, #28]

(86) NativeHashAggregate
Input [11]: [c_last_name#21, c_first_name#20, s_store_name#9, ca_state#23, s_state#11, i_color#16, i_current_price#14, i_manager_id#18, i_units#17, i_size#15, #28]
Keys [10]: [c_last_name#21, c_first_name#20, s_store_name#9, ca_state#23, s_state#11, i_color#16, i_current_price#14, i_manager_id#18, i_units#17, i_size#15]
Functions [1]: [sum(UnscaledValue(ss_net_paid#5))]
Aggregate Attributes [1]: [sum(UnscaledValue(ss_net_paid#5))#29]
Results [11]: [c_last_name#21, c_first_name#20, s_store_name#9, ca_state#23, s_state#11, i_color#16, i_current_price#14, i_manager_id#18, i_units#17, i_size#15, sum(UnscaledValue(ss_net_paid#5))#29]

(87) NativeProject
Output [4]: [c_last_name#21, c_first_name#20, s_store_name#9, MakeDecimal(sum(UnscaledValue(ss_net_paid#5))#29,17,2) AS netpaid#30]
Input [11]: [c_last_name#21, c_first_name#20, s_store_name#9, ca_state#23, s_state#11, i_color#16, i_current_price#14, i_manager_id#18, i_units#17, i_size#15, sum(UnscaledValue(ss_net_paid#5))#29]

(88) NativeHashAggregate
Input [4]: [c_last_name#21, c_first_name#20, s_store_name#9, netpaid#30]
Keys [3]: [c_last_name#21, c_first_name#20, s_store_name#9]
Functions [1]: [partial_sum(netpaid#30)]
Aggregate Attributes [2]: [sum#31, isEmpty#32]
Results [4]: [c_last_name#21, c_first_name#20, s_store_name#9, #33]

(89) NativeShuffleExchange
Input [4]: [c_last_name#21, c_first_name#20, s_store_name#9, #33]
Arguments: hashpartitioning(c_last_name#21, c_first_name#20, s_store_name#9, 100), ENSURE_REQUIREMENTS, [plan_id=12]

(90) ShuffleQueryStage
Output [4]: [c_last_name#21, c_first_name#20, s_store_name#9, #33]
Arguments: X

(91) AQEShuffleRead
Input [4]: [c_last_name#21, c_first_name#20, s_store_name#9, #33]
Arguments: coalesced

(92) InputAdapter
Input [4]: [c_last_name#21, c_first_name#20, s_store_name#9, #33]

(93) NativeHashAggregate
Input [4]: [c_last_name#21, c_first_name#20, s_store_name#9, #33]
Keys [3]: [c_last_name#21, c_first_name#20, s_store_name#9]
Functions [1]: [sum(netpaid#30)]
Aggregate Attributes [1]: [sum(netpaid#30)#34]
Results [4]: [c_last_name#21, c_first_name#20, s_store_name#9, sum(netpaid#30)#34]

(94) NativeProject
Output [4]: [c_last_name#21, c_first_name#20, s_store_name#9, sum(netpaid#30)#34 AS paid#35]
Input [4]: [c_last_name#21, c_first_name#20, s_store_name#9, sum(netpaid#30)#34]

(95) NativeFilter
Input [4]: [c_last_name#21, c_first_name#20, s_store_name#9, paid#35]
Condition : (isnotnull(paid#35) AND (cast(paid#35 as decimal(33,8)) > cast(Subquery subquery#36, [id=#37] as decimal(33,8))))

(96) Scan parquet
Output [5]: [ss_item_sk#1, ss_customer_sk#2, ss_store_sk#3, ss_ticket_number#4, ss_net_paid#5]
Batched: true
Location: InMemoryFileIndex [file:/<warehouse_dir>]
PushedFilters: [IsNotNull(ss_ticket_number), IsNotNull(ss_item_sk), IsNotNull(ss_store_sk), IsNotNull(ss_customer_sk)]
ReadSchema: struct<ss_item_sk:int,ss_customer_sk:int,ss_store_sk:int,ss_ticket_number:int,ss_net_paid:decimal(7,2)>

(97) Filter
Input [5]: [ss_item_sk#1, ss_customer_sk#2, ss_store_sk#3, ss_ticket_number#4, ss_net_paid#5]
Condition : (((isnotnull(ss_ticket_number#4) AND isnotnull(ss_item_sk#1)) AND isnotnull(ss_store_sk#3)) AND isnotnull(ss_customer_sk#2))

(98) Exchange
Input [5]: [ss_item_sk#1, ss_customer_sk#2, ss_store_sk#3, ss_ticket_number#4, ss_net_paid#5]
Arguments: hashpartitioning(ss_ticket_number#4, ss_item_sk#1, 100), ENSURE_REQUIREMENTS, [plan_id=13]

(99) Sort
Input [5]: [ss_item_sk#1, ss_customer_sk#2, ss_store_sk#3, ss_ticket_number#4, ss_net_paid#5]
Arguments: [ss_ticket_number#4 ASC NULLS FIRST, ss_item_sk#1 ASC NULLS FIRST], false, 0

(100) Scan parquet
Output [2]: [sr_item_sk#6, sr_ticket_number#7]
Batched: true
Location: InMemoryFileIndex [file:/<warehouse_dir>]
PushedFilters: [IsNotNull(sr_ticket_number), IsNotNull(sr_item_sk)]
ReadSchema: struct<sr_item_sk:int,sr_ticket_number:int>

(101) Filter
Input [2]: [sr_item_sk#6, sr_ticket_number#7]
Condition : (isnotnull(sr_ticket_number#7) AND isnotnull(sr_item_sk#6))

(102) Exchange
Input [2]: [sr_item_sk#6, sr_ticket_number#7]
Arguments: hashpartitioning(sr_ticket_number#7, sr_item_sk#6, 100), ENSURE_REQUIREMENTS, [plan_id=14]

(103) Sort
Input [2]: [sr_item_sk#6, sr_ticket_number#7]
Arguments: [sr_ticket_number#7 ASC NULLS FIRST, sr_item_sk#6 ASC NULLS FIRST], false, 0

(104) SortMergeJoin
Left keys [2]: [ss_ticket_number#4, ss_item_sk#1]
Right keys [2]: [sr_ticket_number#7, sr_item_sk#6]
Join type: Inner
Join condition: None

(105) Project
Output [4]: [ss_item_sk#1, ss_customer_sk#2, ss_store_sk#3, ss_net_paid#5]
Input [7]: [ss_item_sk#1, ss_customer_sk#2, ss_store_sk#3, ss_ticket_number#4, ss_net_paid#5, sr_item_sk#6, sr_ticket_number#7]

(106) Exchange
Input [4]: [ss_item_sk#1, ss_customer_sk#2, ss_store_sk#3, ss_net_paid#5]
Arguments: hashpartitioning(ss_store_sk#3, 100), ENSURE_REQUIREMENTS, [plan_id=15]

(107) Sort
Input [4]: [ss_item_sk#1, ss_customer_sk#2, ss_store_sk#3, ss_net_paid#5]
Arguments: [ss_store_sk#3 ASC NULLS FIRST], false, 0

(108) Scan parquet
Output [5]: [s_store_sk#8, s_store_name#9, s_market_id#10, s_state#11, s_zip#12]
Batched: true
Location: InMemoryFileIndex [file:/<warehouse_dir>]
PushedFilters: [IsNotNull(s_market_id), EqualTo(s_market_id,8), IsNotNull(s_store_sk), IsNotNull(s_zip)]
ReadSchema: struct<s_store_sk:int,s_store_name:string,s_market_id:int,s_state:string,s_zip:string>

(109) Filter
Input [5]: [s_store_sk#8, s_store_name#9, s_market_id#10, s_state#11, s_zip#12]
Condition : (((isnotnull(s_market_id#10) AND (s_market_id#10 = 8)) AND isnotnull(s_store_sk#8)) AND isnotnull(s_zip#12))

(110) Project
Output [4]: [s_store_sk#8, s_store_name#9, s_state#11, s_zip#12]
Input [5]: [s_store_sk#8, s_store_name#9, s_market_id#10, s_state#11, s_zip#12]

(111) Exchange
Input [4]: [s_store_sk#8, s_store_name#9, s_state#11, s_zip#12]
Arguments: hashpartitioning(s_store_sk#8, 100), ENSURE_REQUIREMENTS, [plan_id=16]

(112) Sort
Input [4]: [s_store_sk#8, s_store_name#9, s_state#11, s_zip#12]
Arguments: [s_store_sk#8 ASC NULLS FIRST], false, 0

(113) SortMergeJoin
Left keys [1]: [ss_store_sk#3]
Right keys [1]: [s_store_sk#8]
Join type: Inner
Join condition: None

(114) Project
Output [6]: [ss_item_sk#1, ss_customer_sk#2, ss_net_paid#5, s_store_name#9, s_state#11, s_zip#12]
Input [8]: [ss_item_sk#1, ss_customer_sk#2, ss_store_sk#3, ss_net_paid#5, s_store_sk#8, s_store_name#9, s_state#11, s_zip#12]

(115) Exchange
Input [6]: [ss_item_sk#1, ss_customer_sk#2, ss_net_paid#5, s_store_name#9, s_state#11, s_zip#12]
Arguments: hashpartitioning(ss_item_sk#1, 100), ENSURE_REQUIREMENTS, [plan_id=17]

(116) Sort
Input [6]: [ss_item_sk#1, ss_customer_sk#2, ss_net_paid#5, s_store_name#9, s_state#11, s_zip#12]
Arguments: [ss_item_sk#1 ASC NULLS FIRST], false, 0

(117) Scan parquet
Output [6]: [i_item_sk#13, i_current_price#14, i_size#15, i_color#16, i_units#17, i_manager_id#18]
Batched: true
Location: InMemoryFileIndex [file:/<warehouse_dir>]
PushedFilters: [IsNotNull(i_color), EqualTo(i_color,chiffon), IsNotNull(i_item_sk)]
ReadSchema: struct<i_item_sk:int,i_current_price:decimal(7,2),i_size:string,i_color:string,i_units:string,i_manager_id:int>

(118) Filter
Input [6]: [i_item_sk#13, i_current_price#14, i_size#15, i_color#16, i_units#17, i_manager_id#18]
Condition : ((isnotnull(i_color#16) AND (i_color#16 = chiffon)) AND isnotnull(i_item_sk#13))

(119) Exchange
Input [6]: [i_item_sk#13, i_current_price#14, i_size#15, i_color#16, i_units#17, i_manager_id#18]
Arguments: hashpartitioning(i_item_sk#13, 100), ENSURE_REQUIREMENTS, [plan_id=18]

(120) Sort
Input [6]: [i_item_sk#13, i_current_price#14, i_size#15, i_color#16, i_units#17, i_manager_id#18]
Arguments: [i_item_sk#13 ASC NULLS FIRST], false, 0

(121) SortMergeJoin
Left keys [1]: [ss_item_sk#1]
Right keys [1]: [i_item_sk#13]
Join type: Inner
Join condition: None

(122) Project
Output [10]: [ss_customer_sk#2, ss_net_paid#5, s_store_name#9, s_state#11, s_zip#12, i_current_price#14, i_size#15, i_color#16, i_units#17, i_manager_id#18]
Input [12]: [ss_item_sk#1, ss_customer_sk#2, ss_net_paid#5, s_store_name#9, s_state#11, s_zip#12, i_item_sk#13, i_current_price#14, i_size#15, i_color#16, i_units#17, i_manager_id#18]

(123) Exchange
Input [10]: [ss_customer_sk#2, ss_net_paid#5, s_store_name#9, s_state#11, s_zip#12, i_current_price#14, i_size#15, i_color#16, i_units#17, i_manager_id#18]
Arguments: hashpartitioning(ss_customer_sk#2, 100), ENSURE_REQUIREMENTS, [plan_id=19]

(124) Sort
Input [10]: [ss_customer_sk#2, ss_net_paid#5, s_store_name#9, s_state#11, s_zip#12, i_current_price#14, i_size#15, i_color#16, i_units#17, i_manager_id#18]
Arguments: [ss_customer_sk#2 ASC NULLS FIRST], false, 0

(125) Scan parquet
Output [4]: [c_customer_sk#19, c_first_name#20, c_last_name#21, c_birth_country#22]
Batched: true
Location: InMemoryFileIndex [file:/<warehouse_dir>]
PushedFilters: [IsNotNull(c_customer_sk), IsNotNull(c_birth_country)]
ReadSchema: struct<c_customer_sk:int,c_first_name:string,c_last_name:string,c_birth_country:string>

(126) Filter
Input [4]: [c_customer_sk#19, c_first_name#20, c_last_name#21, c_birth_country#22]
Condition : (isnotnull(c_customer_sk#19) AND isnotnull(c_birth_country#22))

(127) Exchange
Input [4]: [c_customer_sk#19, c_first_name#20, c_last_name#21, c_birth_country#22]
Arguments: hashpartitioning(c_customer_sk#19, 100), ENSURE_REQUIREMENTS, [plan_id=20]

(128) Sort
Input [4]: [c_customer_sk#19, c_first_name#20, c_last_name#21, c_birth_country#22]
Arguments: [c_customer_sk#19 ASC NULLS FIRST], false, 0

(129) SortMergeJoin
Left keys [1]: [ss_customer_sk#2]
Right keys [1]: [c_customer_sk#19]
Join type: Inner
Join condition: None

(130) Project
Output [12]: [ss_net_paid#5, s_store_name#9, s_state#11, s_zip#12, i_current_price#14, i_size#15, i_color#16, i_units#17, i_manager_id#18, c_first_name#20, c_last_name#21, c_birth_country#22]
Input [14]: [ss_customer_sk#2, ss_net_paid#5, s_store_name#9, s_state#11, s_zip#12, i_current_price#14, i_size#15, i_color#16, i_units#17, i_manager_id#18, c_customer_sk#19, c_first_name#20, c_last_name#21, c_birth_country#22]

(131) Exchange
Input [12]: [ss_net_paid#5, s_store_name#9, s_state#11, s_zip#12, i_current_price#14, i_size#15, i_color#16, i_units#17, i_manager_id#18, c_first_name#20, c_last_name#21, c_birth_country#22]
Arguments: hashpartitioning(c_birth_country#22, s_zip#12, 100), ENSURE_REQUIREMENTS, [plan_id=21]

(132) Sort
Input [12]: [ss_net_paid#5, s_store_name#9, s_state#11, s_zip#12, i_current_price#14, i_size#15, i_color#16, i_units#17, i_manager_id#18, c_first_name#20, c_last_name#21, c_birth_country#22]
Arguments: [c_birth_country#22 ASC NULLS FIRST, s_zip#12 ASC NULLS FIRST], false, 0

(133) Scan parquet
Output [3]: [ca_state#23, ca_zip#24, ca_country#25]
Batched: true
Location: InMemoryFileIndex [file:/<warehouse_dir>]
PushedFilters: [IsNotNull(ca_country), IsNotNull(ca_zip)]
ReadSchema: struct<ca_state:string,ca_zip:string,ca_country:string>

(134) Filter
Input [3]: [ca_state#23, ca_zip#24, ca_country#25]
Condition : (isnotnull(ca_country#25) AND isnotnull(ca_zip#24))

(135) Exchange
Input [3]: [ca_state#23, ca_zip#24, ca_country#25]
Arguments: hashpartitioning(upper(ca_country#25), ca_zip#24, 100), ENSURE_REQUIREMENTS, [plan_id=22]

(136) Sort
Input [3]: [ca_state#23, ca_zip#24, ca_country#25]
Arguments: [upper(ca_country#25) ASC NULLS FIRST, ca_zip#24 ASC NULLS FIRST], false, 0

(137) SortMergeJoin
Left keys [2]: [c_birth_country#22, s_zip#12]
Right keys [2]: [upper(ca_country#25), ca_zip#24]
Join type: Inner
Join condition: None

(138) Project
Output [11]: [ss_net_paid#5, s_store_name#9, s_state#11, i_current_price#14, i_size#15, i_color#16, i_units#17, i_manager_id#18, c_first_name#20, c_last_name#21, ca_state#23]
Input [15]: [ss_net_paid#5, s_store_name#9, s_state#11, s_zip#12, i_current_price#14, i_size#15, i_color#16, i_units#17, i_manager_id#18, c_first_name#20, c_last_name#21, c_birth_country#22, ca_state#23, ca_zip#24, ca_country#25]

(139) HashAggregate
Input [11]: [ss_net_paid#5, s_store_name#9, s_state#11, i_current_price#14, i_size#15, i_color#16, i_units#17, i_manager_id#18, c_first_name#20, c_last_name#21, ca_state#23]
Keys [10]: [c_last_name#21, c_first_name#20, s_store_name#9, ca_state#23, s_state#11, i_color#16, i_current_price#14, i_manager_id#18, i_units#17, i_size#15]
Functions [1]: [partial_sum(UnscaledValue(ss_net_paid#5))]
Aggregate Attributes [1]: [sum#27]
Results [11]: [c_last_name#21, c_first_name#20, s_store_name#9, ca_state#23, s_state#11, i_color#16, i_current_price#14, i_manager_id#18, i_units#17, i_size#15, sum#38]

(140) Exchange
Input [11]: [c_last_name#21, c_first_name#20, s_store_name#9, ca_state#23, s_state#11, i_color#16, i_current_price#14, i_manager_id#18, i_units#17, i_size#15, sum#38]
Arguments: hashpartitioning(c_last_name#21, c_first_name#20, s_store_name#9, ca_state#23, s_state#11, i_color#16, i_current_price#14, i_manager_id#18, i_units#17, i_size#15, 100), ENSURE_REQUIREMENTS, [plan_id=23]

(141) HashAggregate
Input [11]: [c_last_name#21, c_first_name#20, s_store_name#9, ca_state#23, s_state#11, i_color#16, i_current_price#14, i_manager_id#18, i_units#17, i_size#15, sum#38]
Keys [10]: [c_last_name#21, c_first_name#20, s_store_name#9, ca_state#23, s_state#11, i_color#16, i_current_price#14, i_manager_id#18, i_units#17, i_size#15]
Functions [1]: [sum(UnscaledValue(ss_net_paid#5))]
Aggregate Attributes [1]: [sum(UnscaledValue(ss_net_paid#5))#29]
Results [4]: [c_last_name#21, c_first_name#20, s_store_name#9, MakeDecimal(sum(UnscaledValue(ss_net_paid#5))#29,17,2) AS netpaid#30]

(142) HashAggregate
Input [4]: [c_last_name#21, c_first_name#20, s_store_name#9, netpaid#30]
Keys [3]: [c_last_name#21, c_first_name#20, s_store_name#9]
Functions [1]: [partial_sum(netpaid#30)]
Aggregate Attributes [2]: [sum#31, isEmpty#32]
Results [5]: [c_last_name#21, c_first_name#20, s_store_name#9, sum#39, isEmpty#40]

(143) Exchange
Input [5]: [c_last_name#21, c_first_name#20, s_store_name#9, sum#39, isEmpty#40]
Arguments: hashpartitioning(c_last_name#21, c_first_name#20, s_store_name#9, 100), ENSURE_REQUIREMENTS, [plan_id=24]

(144) HashAggregate
Input [5]: [c_last_name#21, c_first_name#20, s_store_name#9, sum#39, isEmpty#40]
Keys [3]: [c_last_name#21, c_first_name#20, s_store_name#9]
Functions [1]: [sum(netpaid#30)]
Aggregate Attributes [1]: [sum(netpaid#30)#34]
Results [4]: [c_last_name#21, c_first_name#20, s_store_name#9, sum(netpaid#30)#34 AS paid#35]

(145) Filter
Input [4]: [c_last_name#21, c_first_name#20, s_store_name#9, paid#35]
Condition : (isnotnull(paid#35) AND (cast(paid#35 as decimal(33,8)) > cast(Subquery subquery#36, [id=#41] as decimal(33,8))))

(146) Exchange
Input [4]: [c_last_name#21, c_first_name#20, s_store_name#9, paid#35]
Arguments: rangepartitioning(c_last_name#21 ASC NULLS FIRST, c_first_name#20 ASC NULLS FIRST, s_store_name#9 ASC NULLS FIRST, 100), ENSURE_REQUIREMENTS, [plan_id=25]

(147) Sort
Input [4]: [c_last_name#21, c_first_name#20, s_store_name#9, paid#35]
Arguments: [c_last_name#21 ASC NULLS FIRST, c_first_name#20 ASC NULLS FIRST, s_store_name#9 ASC NULLS FIRST], true, 0

(148) AdaptiveSparkPlan
Output [4]: [c_last_name#21, c_first_name#20, s_store_name#9, paid#35]
Arguments: isFinalPlan=true

===== Subqueries =====

Subquery:1 Hosting operator id = 95 Hosting Expression = Subquery subquery#36, [id=#37]
AdaptiveSparkPlan (253)
+- == Final Plan ==
   NativeProject (203)
   +- NativeHashAggregate (202)
      +- ShuffleQueryStage (201), Statistics(X)
         +- NativeShuffleExchange (200)
            +- NativeHashAggregate (199)
               +- NativeProject (198)
                  +- NativeHashAggregate (197)
                     +- InputAdapter (196)
                        +- AQEShuffleRead (195)
                           +- ShuffleQueryStage (194), Statistics(X)
                              +- NativeShuffleExchange (193)
                                 +- NativeHashAggregate (192)
                                    +- NativeProject (191)
                                       +- NativeProject (190)
                                          +- NativeSortMergeJoin Inner (189)
                                             :- NativeSort (182)
                                             :  +- InputAdapter (181)
                                             :     +- AQEShuffleRead (180)
                                             :        +- ShuffleQueryStage (179), Statistics(X)
                                             :           +- NativeShuffleExchange (178)
                                             :              +- NativeProject (177)
                                             :                 +- NativeSortMergeJoin Inner (176)
                                             :                    :- NativeSort (169)
                                             :                    :  +- InputAdapter (168)
                                             :                    :     +- AQEShuffleRead (167)
                                             :                    :        +- ShuffleQueryStage (166), Statistics(X)
                                             :                    :           +- NativeShuffleExchange (165)
                                             :                    :              +- NativeProject (164)
                                             :                    :                 +- NativeSortMergeJoin Inner (163)
                                             :                    :                    :- NativeSort (154)
                                             :                    :                    :  +- InputAdapter (153)
                                             :                    :                    :     +- InputAdapter (152)
                                             :                    :                    :        +- AQEShuffleRead (151)
                                             :                    :                    :           +- ShuffleQueryStage (150), Statistics(X)
                                             :                    :                    :              +- ReusedExchange (149)
                                             :                    :                    +- NativeSort (162)
                                             :                    :                       +- InputAdapter (161)
                                             :                    :                          +- AQEShuffleRead (160)
                                             :                    :                             +- ShuffleQueryStage (159), Statistics(X)
                                             :                    :                                +- NativeShuffleExchange (158)
                                             :                    :                                   +- NativeFilter (157)
                                             :                    :                                      +- InputAdapter (156)
                                             :                    :                                         +- NativeParquetScan  (155)
                                             :                    +- NativeSort (175)
                                             :                       +- InputAdapter (174)
                                             :                          +- InputAdapter (173)
                                             :                             +- AQEShuffleRead (172)
                                             :                                +- ShuffleQueryStage (171), Statistics(X)
                                             :                                   +- ReusedExchange (170)
                                             +- NativeSort (188)
                                                +- InputAdapter (187)
                                                   +- InputAdapter (186)
                                                      +- AQEShuffleRead (185)
                                                         +- ShuffleQueryStage (184), Statistics(X)
                                                            +- ReusedExchange (183)
+- == Initial Plan ==
   HashAggregate (252)
   +- Exchange (251)
      +- HashAggregate (250)
         +- HashAggregate (249)
            +- Exchange (248)
               +- HashAggregate (247)
                  +- Project (246)
                     +- SortMergeJoin Inner (245)
                        :- Sort (240)
                        :  +- Exchange (239)
                        :     +- Project (238)
                        :        +- SortMergeJoin Inner (237)
                        :           :- Sort (232)
                        :           :  +- Exchange (231)
                        :           :     +- Project (230)
                        :           :        +- SortMergeJoin Inner (229)
                        :           :           :- Sort (224)
                        :           :           :  +- Exchange (223)
                        :           :           :     +- Project (222)
                        :           :           :        +- SortMergeJoin Inner (221)
                        :           :           :           :- Sort (215)
                        :           :           :           :  +- Exchange (214)
                        :           :           :           :     +- Project (213)
                        :           :           :           :        +- SortMergeJoin Inner (212)
                        :           :           :           :           :- Sort (207)
                        :           :           :           :           :  +- Exchange (206)
                        :           :           :           :           :     +- Filter (205)
                        :           :           :           :           :        +- Scan parquet (204)
                        :           :           :           :           +- Sort (211)
                        :           :           :           :              +- Exchange (210)
                        :           :           :           :                 +- Filter (209)
                        :           :           :           :                    +- Scan parquet (208)
                        :           :           :           +- Sort (220)
                        :           :           :              +- Exchange (219)
                        :           :           :                 +- Project (218)
                        :           :           :                    +- Filter (217)
                        :           :           :                       +- Scan parquet (216)
                        :           :           +- Sort (228)
                        :           :              +- Exchange (227)
                        :           :                 +- Filter (226)
                        :           :                    +- Scan parquet (225)
                        :           +- Sort (236)
                        :              +- Exchange (235)
                        :                 +- Filter (234)
                        :                    +- Scan parquet (233)
                        +- Sort (244)
                           +- Exchange (243)
                              +- Filter (242)
                                 +- Scan parquet (241)


(149) ReusedExchange [Reuses operator id: 35]
Output [6]: [ss_item_sk#42, ss_customer_sk#43, ss_net_paid#44, s_store_name#45, s_state#46, s_zip#47]

(150) ShuffleQueryStage
Output [6]: [ss_item_sk#42, ss_customer_sk#43, ss_net_paid#44, s_store_name#45, s_state#46, s_zip#47]
Arguments: X

(151) AQEShuffleRead
Input [6]: [ss_item_sk#42, ss_customer_sk#43, ss_net_paid#44, s_store_name#45, s_state#46, s_zip#47]
Arguments: coalesced

(152) InputAdapter
Input [6]: [ss_item_sk#42, ss_customer_sk#43, ss_net_paid#44, s_store_name#45, s_state#46, s_zip#47]
Arguments: [#42, #43, #44, #45, #46, #47]

(153) InputAdapter
Input [6]: [#42#42, #43#43, #44#44, #45#45, #46#46, #47#47]

(154) NativeSort
Input [6]: [#42#42, #43#43, #44#44, #45#45, #46#46, #47#47]
Arguments: [ss_item_sk#42 ASC NULLS FIRST], false

(225) Scan parquet
Output [6]: [i_item_sk#48, i_current_price#49, i_size#50, i_color#51, i_units#52, i_manager_id#53]
Batched: true
Location: InMemoryFileIndex [file:/<warehouse_dir>]
PushedFilters: [IsNotNull(i_item_sk)]
ReadSchema: struct<i_item_sk:int,i_current_price:decimal(7,2),i_size:string,i_color:string,i_units:string,i_manager_id:int>

(156) InputAdapter
Input [6]: [i_item_sk#48, i_current_price#49, i_size#50, i_color#51, i_units#52, i_manager_id#53]
Arguments: [#48, #49, #50, #51, #52, #53]

(157) NativeFilter
Input [6]: [#48#48, #49#49, #50#50, #51#51, #52#52, #53#53]
Condition : isnotnull(i_item_sk#48)

(158) NativeShuffleExchange
Input [6]: [#48#48, #49#49, #50#50, #51#51, #52#52, #53#53]
Arguments: hashpartitioning(i_item_sk#48, 100), ENSURE_REQUIREMENTS, [plan_id=26]

(159) ShuffleQueryStage
Output [6]: [#48#48, #49#49, #50#50, #51#51, #52#52, #53#53]
Arguments: X

(160) AQEShuffleRead
Input [6]: [#48#48, #49#49, #50#50, #51#51, #52#52, #53#53]
Arguments: coalesced

(161) InputAdapter
Input [6]: [#48#48, #49#49, #50#50, #51#51, #52#52, #53#53]

(162) NativeSort
Input [6]: [#48#48, #49#49, #50#50, #51#51, #52#52, #53#53]
Arguments: [i_item_sk#48 ASC NULLS FIRST], false

(163) NativeSortMergeJoin
Left keys [1]: [ss_item_sk#42]
Right keys [1]: [i_item_sk#48]
Join type: Inner
Join condition: None

(164) NativeProject
Output [10]: [ss_customer_sk#43, ss_net_paid#44, s_store_name#45, s_state#46, s_zip#47, i_current_price#49, i_size#50, i_color#51, i_units#52, i_manager_id#53]
Input [12]: [#42#42, #43#43, #44#44, #45#45, #46#46, #47#47, #48#48, #49#49, #50#50, #51#51, #52#52, #53#53]

(165) NativeShuffleExchange
Input [10]: [ss_customer_sk#43, ss_net_paid#44, s_store_name#45, s_state#46, s_zip#47, i_current_price#49, i_size#50, i_color#51, i_units#52, i_manager_id#53]
Arguments: hashpartitioning(ss_customer_sk#43, 100), ENSURE_REQUIREMENTS, [plan_id=27]

(166) ShuffleQueryStage
Output [10]: [ss_customer_sk#43, ss_net_paid#44, s_store_name#45, s_state#46, s_zip#47, i_current_price#49, i_size#50, i_color#51, i_units#52, i_manager_id#53]
Arguments: X

(167) AQEShuffleRead
Input [10]: [ss_customer_sk#43, ss_net_paid#44, s_store_name#45, s_state#46, s_zip#47, i_current_price#49, i_size#50, i_color#51, i_units#52, i_manager_id#53]
Arguments: coalesced

(168) InputAdapter
Input [10]: [ss_customer_sk#43, ss_net_paid#44, s_store_name#45, s_state#46, s_zip#47, i_current_price#49, i_size#50, i_color#51, i_units#52, i_manager_id#53]

(169) NativeSort
Input [10]: [ss_customer_sk#43, ss_net_paid#44, s_store_name#45, s_state#46, s_zip#47, i_current_price#49, i_size#50, i_color#51, i_units#52, i_manager_id#53]
Arguments: [ss_customer_sk#43 ASC NULLS FIRST], false

(170) ReusedExchange [Reuses operator id: 58]
Output [4]: [c_customer_sk#54, c_first_name#55, c_last_name#56, c_birth_country#57]

(171) ShuffleQueryStage
Output [4]: [c_customer_sk#54, c_first_name#55, c_last_name#56, c_birth_country#57]
Arguments: X

(172) AQEShuffleRead
Input [4]: [c_customer_sk#54, c_first_name#55, c_last_name#56, c_birth_country#57]
Arguments: coalesced

(173) InputAdapter
Input [4]: [c_customer_sk#54, c_first_name#55, c_last_name#56, c_birth_country#57]
Arguments: [#54, #55, #56, #57]

(174) InputAdapter
Input [4]: [#54#54, #55#55, #56#56, #57#57]

(175) NativeSort
Input [4]: [#54#54, #55#55, #56#56, #57#57]
Arguments: [c_customer_sk#54 ASC NULLS FIRST], false

(176) NativeSortMergeJoin
Left keys [1]: [ss_customer_sk#43]
Right keys [1]: [c_customer_sk#54]
Join type: Inner
Join condition: None

(177) NativeProject
Output [12]: [ss_net_paid#44, s_store_name#45, s_state#46, s_zip#47, i_current_price#49, i_size#50, i_color#51, i_units#52, i_manager_id#53, c_first_name#55, c_last_name#56, c_birth_country#57]
Input [14]: [ss_customer_sk#43, ss_net_paid#44, s_store_name#45, s_state#46, s_zip#47, i_current_price#49, i_size#50, i_color#51, i_units#52, i_manager_id#53, #54#54, #55#55, #56#56, #57#57]

(178) NativeShuffleExchange
Input [12]: [ss_net_paid#44, s_store_name#45, s_state#46, s_zip#47, i_current_price#49, i_size#50, i_color#51, i_units#52, i_manager_id#53, c_first_name#55, c_last_name#56, c_birth_country#57]
Arguments: hashpartitioning(c_birth_country#57, s_zip#47, 100), ENSURE_REQUIREMENTS, [plan_id=28]

(179) ShuffleQueryStage
Output [12]: [ss_net_paid#44, s_store_name#45, s_state#46, s_zip#47, i_current_price#49, i_size#50, i_color#51, i_units#52, i_manager_id#53, c_first_name#55, c_last_name#56, c_birth_country#57]
Arguments: X

(180) AQEShuffleRead
Input [12]: [ss_net_paid#44, s_store_name#45, s_state#46, s_zip#47, i_current_price#49, i_size#50, i_color#51, i_units#52, i_manager_id#53, c_first_name#55, c_last_name#56, c_birth_country#57]
Arguments: coalesced

(181) InputAdapter
Input [12]: [ss_net_paid#44, s_store_name#45, s_state#46, s_zip#47, i_current_price#49, i_size#50, i_color#51, i_units#52, i_manager_id#53, c_first_name#55, c_last_name#56, c_birth_country#57]

(182) NativeSort
Input [12]: [ss_net_paid#44, s_store_name#45, s_state#46, s_zip#47, i_current_price#49, i_size#50, i_color#51, i_units#52, i_manager_id#53, c_first_name#55, c_last_name#56, c_birth_country#57]
Arguments: [c_birth_country#57 ASC NULLS FIRST, s_zip#47 ASC NULLS FIRST], false

(183) ReusedExchange [Reuses operator id: 73]
Output [3]: [ca_state#58, ca_zip#59, ca_country#60]

(184) ShuffleQueryStage
Output [3]: [ca_state#58, ca_zip#59, ca_country#60]
Arguments: X

(185) AQEShuffleRead
Input [3]: [ca_state#58, ca_zip#59, ca_country#60]
Arguments: coalesced

(186) InputAdapter
Input [3]: [ca_state#58, ca_zip#59, ca_country#60]
Arguments: [#58, #59, #60]

(187) InputAdapter
Input [3]: [#58#58, #59#59, #60#60]

(188) NativeSort
Input [3]: [#58#58, #59#59, #60#60]
Arguments: [upper(ca_country#60) ASC NULLS FIRST, ca_zip#59 ASC NULLS FIRST], false

(189) NativeSortMergeJoin
Left keys [2]: [c_birth_country#57, s_zip#47]
Right keys [2]: [upper(ca_country#60), ca_zip#59]
Join type: Inner
Join condition: None

(190) NativeProject
Output [11]: [ss_net_paid#44, s_store_name#45, s_state#46, i_current_price#49, i_size#50, i_color#51, i_units#52, i_manager_id#53, c_first_name#55, c_last_name#56, ca_state#58]
Input [15]: [ss_net_paid#44, s_store_name#45, s_state#46, s_zip#47, i_current_price#49, i_size#50, i_color#51, i_units#52, i_manager_id#53, c_first_name#55, c_last_name#56, c_birth_country#57, #58#58, #59#59, #60#60]

(191) NativeProject
Output [11]: [c_last_name#56 AS c_last_name#56, c_first_name#55 AS c_first_name#55, s_store_name#45 AS s_store_name#45, ca_state#58 AS ca_state#58, s_state#46 AS s_state#46, i_color#51 AS i_color#51, i_current_price#49 AS i_current_price#49, i_manager_id#53 AS i_manager_id#53, i_units#52 AS i_units#52, i_size#50 AS i_size#50, UnscaledValue(ss_net_paid#44) AS _c10#61]
Input [11]: [ss_net_paid#44, s_store_name#45, s_state#46, i_current_price#49, i_size#50, i_color#51, i_units#52, i_manager_id#53, c_first_name#55, c_last_name#56, ca_state#58]

(192) NativeHashAggregate
Input [11]: [c_last_name#56, c_first_name#55, s_store_name#45, ca_state#58, s_state#46, i_color#51, i_current_price#49, i_manager_id#53, i_units#52, i_size#50, _c10#61]
Keys [10]: [c_last_name#56, c_first_name#55, s_store_name#45, ca_state#58, s_state#46, i_color#51, i_current_price#49, i_manager_id#53, i_units#52, i_size#50]
Functions [1]: [partial_sum(_c10#61)]
Aggregate Attributes [1]: [sum#62]
Results [11]: [c_last_name#56, c_first_name#55, s_store_name#45, ca_state#58, s_state#46, i_color#51, i_current_price#49, i_manager_id#53, i_units#52, i_size#50, #28]

(193) NativeShuffleExchange
Input [11]: [c_last_name#56, c_first_name#55, s_store_name#45, ca_state#58, s_state#46, i_color#51, i_current_price#49, i_manager_id#53, i_units#52, i_size#50, #28]
Arguments: hashpartitioning(c_last_name#56, c_first_name#55, s_store_name#45, ca_state#58, s_state#46, i_color#51, i_current_price#49, i_manager_id#53, i_units#52, i_size#50, 100), ENSURE_REQUIREMENTS, [plan_id=29]

(194) ShuffleQueryStage
Output [11]: [c_last_name#56, c_first_name#55, s_store_name#45, ca_state#58, s_state#46, i_color#51, i_current_price#49, i_manager_id#53, i_units#52, i_size#50, #28]
Arguments: X

(195) AQEShuffleRead
Input [11]: [c_last_name#56, c_first_name#55, s_store_name#45, ca_state#58, s_state#46, i_color#51, i_current_price#49, i_manager_id#53, i_units#52, i_size#50, #28]
Arguments: coalesced

(196) InputAdapter
Input [11]: [c_last_name#56, c_first_name#55, s_store_name#45, ca_state#58, s_state#46, i_color#51, i_current_price#49, i_manager_id#53, i_units#52, i_size#50, #28]

(197) NativeHashAggregate
Input [11]: [c_last_name#56, c_first_name#55, s_store_name#45, ca_state#58, s_state#46, i_color#51, i_current_price#49, i_manager_id#53, i_units#52, i_size#50, #28]
Keys [10]: [c_last_name#56, c_first_name#55, s_store_name#45, ca_state#58, s_state#46, i_color#51, i_current_price#49, i_manager_id#53, i_units#52, i_size#50]
Functions [1]: [sum(UnscaledValue(ss_net_paid#44))]
Aggregate Attributes [1]: [sum(UnscaledValue(ss_net_paid#44))#29]
Results [11]: [c_last_name#56, c_first_name#55, s_store_name#45, ca_state#58, s_state#46, i_color#51, i_current_price#49, i_manager_id#53, i_units#52, i_size#50, sum(UnscaledValue(ss_net_paid#44))#29]

(198) NativeProject
Output [1]: [MakeDecimal(sum(UnscaledValue(ss_net_paid#44))#29,17,2) AS netpaid#63]
Input [11]: [c_last_name#56, c_first_name#55, s_store_name#45, ca_state#58, s_state#46, i_color#51, i_current_price#49, i_manager_id#53, i_units#52, i_size#50, sum(UnscaledValue(ss_net_paid#44))#29]

(199) NativeHashAggregate
Input [1]: [netpaid#63]
Keys: []
Functions [1]: [partial_avg(netpaid#63)]
Aggregate Attributes [2]: [sum#64, count#65]
Results [2]: [#33, #28]

(200) NativeShuffleExchange
Input [2]: [#33, #28]
Arguments: SinglePartition, ENSURE_REQUIREMENTS, [plan_id=30]

(201) ShuffleQueryStage
Output [2]: [#33, #28]
Arguments: X

(202) NativeHashAggregate
Input [2]: [#33, #28]
Keys: []
Functions [1]: [avg(netpaid#63)]
Aggregate Attributes [1]: [avg(netpaid#63)#66]
Results [1]: [avg(netpaid#63)#66]

(203) NativeProject
Output [1]: [(0.05 * avg(netpaid#63)#66) AS (0.05 * avg(netpaid))#67]
Input [1]: [avg(netpaid#63)#66]

(204) Scan parquet
Output [5]: [ss_item_sk#42, ss_customer_sk#43, ss_store_sk#68, ss_ticket_number#69, ss_net_paid#44]
Batched: true
Location: InMemoryFileIndex [file:/<warehouse_dir>]
PushedFilters: [IsNotNull(ss_ticket_number), IsNotNull(ss_item_sk), IsNotNull(ss_store_sk), IsNotNull(ss_customer_sk)]
ReadSchema: struct<ss_item_sk:int,ss_customer_sk:int,ss_store_sk:int,ss_ticket_number:int,ss_net_paid:decimal(7,2)>

(205) Filter
Input [5]: [ss_item_sk#42, ss_customer_sk#43, ss_store_sk#68, ss_ticket_number#69, ss_net_paid#44]
Condition : (((isnotnull(ss_ticket_number#69) AND isnotnull(ss_item_sk#42)) AND isnotnull(ss_store_sk#68)) AND isnotnull(ss_customer_sk#43))

(206) Exchange
Input [5]: [ss_item_sk#42, ss_customer_sk#43, ss_store_sk#68, ss_ticket_number#69, ss_net_paid#44]
Arguments: hashpartitioning(ss_ticket_number#69, ss_item_sk#42, 100), ENSURE_REQUIREMENTS, [plan_id=31]

(207) Sort
Input [5]: [ss_item_sk#42, ss_customer_sk#43, ss_store_sk#68, ss_ticket_number#69, ss_net_paid#44]
Arguments: [ss_ticket_number#69 ASC NULLS FIRST, ss_item_sk#42 ASC NULLS FIRST], false, 0

(208) Scan parquet
Output [2]: [sr_item_sk#70, sr_ticket_number#71]
Batched: true
Location: InMemoryFileIndex [file:/<warehouse_dir>]
PushedFilters: [IsNotNull(sr_ticket_number), IsNotNull(sr_item_sk)]
ReadSchema: struct<sr_item_sk:int,sr_ticket_number:int>

(209) Filter
Input [2]: [sr_item_sk#70, sr_ticket_number#71]
Condition : (isnotnull(sr_ticket_number#71) AND isnotnull(sr_item_sk#70))

(210) Exchange
Input [2]: [sr_item_sk#70, sr_ticket_number#71]
Arguments: hashpartitioning(sr_ticket_number#71, sr_item_sk#70, 100), ENSURE_REQUIREMENTS, [plan_id=32]

(211) Sort
Input [2]: [sr_item_sk#70, sr_ticket_number#71]
Arguments: [sr_ticket_number#71 ASC NULLS FIRST, sr_item_sk#70 ASC NULLS FIRST], false, 0

(212) SortMergeJoin
Left keys [2]: [ss_ticket_number#69, ss_item_sk#42]
Right keys [2]: [sr_ticket_number#71, sr_item_sk#70]
Join type: Inner
Join condition: None

(213) Project
Output [4]: [ss_item_sk#42, ss_customer_sk#43, ss_store_sk#68, ss_net_paid#44]
Input [7]: [ss_item_sk#42, ss_customer_sk#43, ss_store_sk#68, ss_ticket_number#69, ss_net_paid#44, sr_item_sk#70, sr_ticket_number#71]

(214) Exchange
Input [4]: [ss_item_sk#42, ss_customer_sk#43, ss_store_sk#68, ss_net_paid#44]
Arguments: hashpartitioning(ss_store_sk#68, 100), ENSURE_REQUIREMENTS, [plan_id=33]

(215) Sort
Input [4]: [ss_item_sk#42, ss_customer_sk#43, ss_store_sk#68, ss_net_paid#44]
Arguments: [ss_store_sk#68 ASC NULLS FIRST], false, 0

(216) Scan parquet
Output [5]: [s_store_sk#72, s_store_name#45, s_market_id#73, s_state#46, s_zip#47]
Batched: true
Location: InMemoryFileIndex [file:/<warehouse_dir>]
PushedFilters: [IsNotNull(s_market_id), EqualTo(s_market_id,8), IsNotNull(s_store_sk), IsNotNull(s_zip)]
ReadSchema: struct<s_store_sk:int,s_store_name:string,s_market_id:int,s_state:string,s_zip:string>

(217) Filter
Input [5]: [s_store_sk#72, s_store_name#45, s_market_id#73, s_state#46, s_zip#47]
Condition : (((isnotnull(s_market_id#73) AND (s_market_id#73 = 8)) AND isnotnull(s_store_sk#72)) AND isnotnull(s_zip#47))

(218) Project
Output [4]: [s_store_sk#72, s_store_name#45, s_state#46, s_zip#47]
Input [5]: [s_store_sk#72, s_store_name#45, s_market_id#73, s_state#46, s_zip#47]

(219) Exchange
Input [4]: [s_store_sk#72, s_store_name#45, s_state#46, s_zip#47]
Arguments: hashpartitioning(s_store_sk#72, 100), ENSURE_REQUIREMENTS, [plan_id=34]

(220) Sort
Input [4]: [s_store_sk#72, s_store_name#45, s_state#46, s_zip#47]
Arguments: [s_store_sk#72 ASC NULLS FIRST], false, 0

(221) SortMergeJoin
Left keys [1]: [ss_store_sk#68]
Right keys [1]: [s_store_sk#72]
Join type: Inner
Join condition: None

(222) Project
Output [6]: [ss_item_sk#42, ss_customer_sk#43, ss_net_paid#44, s_store_name#45, s_state#46, s_zip#47]
Input [8]: [ss_item_sk#42, ss_customer_sk#43, ss_store_sk#68, ss_net_paid#44, s_store_sk#72, s_store_name#45, s_state#46, s_zip#47]

(223) Exchange
Input [6]: [ss_item_sk#42, ss_customer_sk#43, ss_net_paid#44, s_store_name#45, s_state#46, s_zip#47]
Arguments: hashpartitioning(ss_item_sk#42, 100), ENSURE_REQUIREMENTS, [plan_id=35]

(224) Sort
Input [6]: [ss_item_sk#42, ss_customer_sk#43, ss_net_paid#44, s_store_name#45, s_state#46, s_zip#47]
Arguments: [ss_item_sk#42 ASC NULLS FIRST], false, 0

(225) Scan parquet
Output [6]: [i_item_sk#48, i_current_price#49, i_size#50, i_color#51, i_units#52, i_manager_id#53]
Batched: true
Location: InMemoryFileIndex [file:/<warehouse_dir>]
PushedFilters: [IsNotNull(i_item_sk)]
ReadSchema: struct<i_item_sk:int,i_current_price:decimal(7,2),i_size:string,i_color:string,i_units:string,i_manager_id:int>

(226) Filter
Input [6]: [i_item_sk#48, i_current_price#49, i_size#50, i_color#51, i_units#52, i_manager_id#53]
Condition : isnotnull(i_item_sk#48)

(227) Exchange
Input [6]: [i_item_sk#48, i_current_price#49, i_size#50, i_color#51, i_units#52, i_manager_id#53]
Arguments: hashpartitioning(i_item_sk#48, 100), ENSURE_REQUIREMENTS, [plan_id=36]

(228) Sort
Input [6]: [i_item_sk#48, i_current_price#49, i_size#50, i_color#51, i_units#52, i_manager_id#53]
Arguments: [i_item_sk#48 ASC NULLS FIRST], false, 0

(229) SortMergeJoin
Left keys [1]: [ss_item_sk#42]
Right keys [1]: [i_item_sk#48]
Join type: Inner
Join condition: None

(230) Project
Output [10]: [ss_customer_sk#43, ss_net_paid#44, s_store_name#45, s_state#46, s_zip#47, i_current_price#49, i_size#50, i_color#51, i_units#52, i_manager_id#53]
Input [12]: [ss_item_sk#42, ss_customer_sk#43, ss_net_paid#44, s_store_name#45, s_state#46, s_zip#47, i_item_sk#48, i_current_price#49, i_size#50, i_color#51, i_units#52, i_manager_id#53]

(231) Exchange
Input [10]: [ss_customer_sk#43, ss_net_paid#44, s_store_name#45, s_state#46, s_zip#47, i_current_price#49, i_size#50, i_color#51, i_units#52, i_manager_id#53]
Arguments: hashpartitioning(ss_customer_sk#43, 100), ENSURE_REQUIREMENTS, [plan_id=37]

(232) Sort
Input [10]: [ss_customer_sk#43, ss_net_paid#44, s_store_name#45, s_state#46, s_zip#47, i_current_price#49, i_size#50, i_color#51, i_units#52, i_manager_id#53]
Arguments: [ss_customer_sk#43 ASC NULLS FIRST], false, 0

(233) Scan parquet
Output [4]: [c_customer_sk#54, c_first_name#55, c_last_name#56, c_birth_country#57]
Batched: true
Location: InMemoryFileIndex [file:/<warehouse_dir>]
PushedFilters: [IsNotNull(c_customer_sk), IsNotNull(c_birth_country)]
ReadSchema: struct<c_customer_sk:int,c_first_name:string,c_last_name:string,c_birth_country:string>

(234) Filter
Input [4]: [c_customer_sk#54, c_first_name#55, c_last_name#56, c_birth_country#57]
Condition : (isnotnull(c_customer_sk#54) AND isnotnull(c_birth_country#57))

(235) Exchange
Input [4]: [c_customer_sk#54, c_first_name#55, c_last_name#56, c_birth_country#57]
Arguments: hashpartitioning(c_customer_sk#54, 100), ENSURE_REQUIREMENTS, [plan_id=38]

(236) Sort
Input [4]: [c_customer_sk#54, c_first_name#55, c_last_name#56, c_birth_country#57]
Arguments: [c_customer_sk#54 ASC NULLS FIRST], false, 0

(237) SortMergeJoin
Left keys [1]: [ss_customer_sk#43]
Right keys [1]: [c_customer_sk#54]
Join type: Inner
Join condition: None

(238) Project
Output [12]: [ss_net_paid#44, s_store_name#45, s_state#46, s_zip#47, i_current_price#49, i_size#50, i_color#51, i_units#52, i_manager_id#53, c_first_name#55, c_last_name#56, c_birth_country#57]
Input [14]: [ss_customer_sk#43, ss_net_paid#44, s_store_name#45, s_state#46, s_zip#47, i_current_price#49, i_size#50, i_color#51, i_units#52, i_manager_id#53, c_customer_sk#54, c_first_name#55, c_last_name#56, c_birth_country#57]

(239) Exchange
Input [12]: [ss_net_paid#44, s_store_name#45, s_state#46, s_zip#47, i_current_price#49, i_size#50, i_color#51, i_units#52, i_manager_id#53, c_first_name#55, c_last_name#56, c_birth_country#57]
Arguments: hashpartitioning(c_birth_country#57, s_zip#47, 100), ENSURE_REQUIREMENTS, [plan_id=39]

(240) Sort
Input [12]: [ss_net_paid#44, s_store_name#45, s_state#46, s_zip#47, i_current_price#49, i_size#50, i_color#51, i_units#52, i_manager_id#53, c_first_name#55, c_last_name#56, c_birth_country#57]
Arguments: [c_birth_country#57 ASC NULLS FIRST, s_zip#47 ASC NULLS FIRST], false, 0

(241) Scan parquet
Output [3]: [ca_state#58, ca_zip#59, ca_country#60]
Batched: true
Location: InMemoryFileIndex [file:/<warehouse_dir>]
PushedFilters: [IsNotNull(ca_country), IsNotNull(ca_zip)]
ReadSchema: struct<ca_state:string,ca_zip:string,ca_country:string>

(242) Filter
Input [3]: [ca_state#58, ca_zip#59, ca_country#60]
Condition : (isnotnull(ca_country#60) AND isnotnull(ca_zip#59))

(243) Exchange
Input [3]: [ca_state#58, ca_zip#59, ca_country#60]
Arguments: hashpartitioning(upper(ca_country#60), ca_zip#59, 100), ENSURE_REQUIREMENTS, [plan_id=40]

(244) Sort
Input [3]: [ca_state#58, ca_zip#59, ca_country#60]
Arguments: [upper(ca_country#60) ASC NULLS FIRST, ca_zip#59 ASC NULLS FIRST], false, 0

(245) SortMergeJoin
Left keys [2]: [c_birth_country#57, s_zip#47]
Right keys [2]: [upper(ca_country#60), ca_zip#59]
Join type: Inner
Join condition: None

(246) Project
Output [11]: [ss_net_paid#44, s_store_name#45, s_state#46, i_current_price#49, i_size#50, i_color#51, i_units#52, i_manager_id#53, c_first_name#55, c_last_name#56, ca_state#58]
Input [15]: [ss_net_paid#44, s_store_name#45, s_state#46, s_zip#47, i_current_price#49, i_size#50, i_color#51, i_units#52, i_manager_id#53, c_first_name#55, c_last_name#56, c_birth_country#57, ca_state#58, ca_zip#59, ca_country#60]

(247) HashAggregate
Input [11]: [ss_net_paid#44, s_store_name#45, s_state#46, i_current_price#49, i_size#50, i_color#51, i_units#52, i_manager_id#53, c_first_name#55, c_last_name#56, ca_state#58]
Keys [10]: [c_last_name#56, c_first_name#55, s_store_name#45, ca_state#58, s_state#46, i_color#51, i_current_price#49, i_manager_id#53, i_units#52, i_size#50]
Functions [1]: [partial_sum(UnscaledValue(ss_net_paid#44))]
Aggregate Attributes [1]: [sum#62]
Results [11]: [c_last_name#56, c_first_name#55, s_store_name#45, ca_state#58, s_state#46, i_color#51, i_current_price#49, i_manager_id#53, i_units#52, i_size#50, sum#74]

(248) Exchange
Input [11]: [c_last_name#56, c_first_name#55, s_store_name#45, ca_state#58, s_state#46, i_color#51, i_current_price#49, i_manager_id#53, i_units#52, i_size#50, sum#74]
Arguments: hashpartitioning(c_last_name#56, c_first_name#55, s_store_name#45, ca_state#58, s_state#46, i_color#51, i_current_price#49, i_manager_id#53, i_units#52, i_size#50, 100), ENSURE_REQUIREMENTS, [plan_id=41]

(249) HashAggregate
Input [11]: [c_last_name#56, c_first_name#55, s_store_name#45, ca_state#58, s_state#46, i_color#51, i_current_price#49, i_manager_id#53, i_units#52, i_size#50, sum#74]
Keys [10]: [c_last_name#56, c_first_name#55, s_store_name#45, ca_state#58, s_state#46, i_color#51, i_current_price#49, i_manager_id#53, i_units#52, i_size#50]
Functions [1]: [sum(UnscaledValue(ss_net_paid#44))]
Aggregate Attributes [1]: [sum(UnscaledValue(ss_net_paid#44))#29]
Results [1]: [MakeDecimal(sum(UnscaledValue(ss_net_paid#44))#29,17,2) AS netpaid#63]

(250) HashAggregate
Input [1]: [netpaid#63]
Keys: []
Functions [1]: [partial_avg(netpaid#63)]
Aggregate Attributes [2]: [sum#64, count#65]
Results [2]: [sum#75, count#76]

(251) Exchange
Input [2]: [sum#75, count#76]
Arguments: SinglePartition, ENSURE_REQUIREMENTS, [plan_id=42]

(252) HashAggregate
Input [2]: [sum#75, count#76]
Keys: []
Functions [1]: [avg(netpaid#63)]
Aggregate Attributes [1]: [avg(netpaid#63)#66]
Results [1]: [(0.05 * avg(netpaid#63)#66) AS (0.05 * avg(netpaid))#67]

(253) AdaptiveSparkPlan
Output [1]: [(0.05 * avg(netpaid))#67]
Arguments: isFinalPlan=true


