== Physical Plan ==
TakeOrderedAndProject (74)
+- * HashAggregate (73)
   +- Exchange (72)
      +- * HashAggregate (71)
         +- * Project (70)
            +- * SortMergeJoin LeftOuter (69)
               :- * Sort (62)
               :  +- Exchange (61)
               :     +- * Project (60)
               :        +- * BroadcastHashJoin LeftOuter BuildRight (59)
               :           :- * Project (54)
               :           :  +- * BroadcastHashJoin Inner BuildRight (53)
               :           :     :- * Project (48)
               :           :     :  +- * BroadcastHashJoin Inner BuildRight (47)
               :           :     :     :- * Project (42)
               :           :     :     :  +- * BroadcastHashJoin Inner BuildRight (41)
               :           :     :     :     :- * Project (35)
               :           :     :     :     :  +- * BroadcastHashJoin Inner BuildRight (34)
               :           :     :     :     :     :- * Project (28)
               :           :     :     :     :     :  +- * BroadcastHashJoin Inner BuildRight (27)
               :           :     :     :     :     :     :- * Project (21)
               :           :     :     :     :     :     :  +- * BroadcastHashJoin Inner BuildRight (20)
               :           :     :     :     :     :     :     :- * Project (15)
               :           :     :     :     :     :     :     :  +- * BroadcastHashJoin Inner BuildRight (14)
               :           :     :     :     :     :     :     :     :- * Project (9)
               :           :     :     :     :     :     :     :     :  +- * BroadcastHashJoin Inner BuildRight (8)
               :           :     :     :     :     :     :     :     :     :- * Filter (3)
               :           :     :     :     :     :     :     :     :     :  +- * ColumnarToRow (2)
               :           :     :     :     :     :     :     :     :     :     +- Scan parquet spark_catalog.default.catalog_sales (1)
               :           :     :     :     :     :     :     :     :     +- BroadcastExchange (7)
               :           :     :     :     :     :     :     :     :        +- * Filter (6)
               :           :     :     :     :     :     :     :     :           +- * ColumnarToRow (5)
               :           :     :     :     :     :     :     :     :              +- Scan parquet spark_catalog.default.inventory (4)
               :           :     :     :     :     :     :     :     +- BroadcastExchange (13)
               :           :     :     :     :     :     :     :        +- * Filter (12)
               :           :     :     :     :     :     :     :           +- * ColumnarToRow (11)
               :           :     :     :     :     :     :     :              +- Scan parquet spark_catalog.default.warehouse (10)
               :           :     :     :     :     :     :     +- BroadcastExchange (19)
               :           :     :     :     :     :     :        +- * Filter (18)
               :           :     :     :     :     :     :           +- * ColumnarToRow (17)
               :           :     :     :     :     :     :              +- Scan parquet spark_catalog.default.item (16)
               :           :     :     :     :     :     +- BroadcastExchange (26)
               :           :     :     :     :     :        +- * Project (25)
               :           :     :     :     :     :           +- * Filter (24)
               :           :     :     :     :     :              +- * ColumnarToRow (23)
               :           :     :     :     :     :                 +- Scan parquet spark_catalog.default.customer_demographics (22)
               :           :     :     :     :     +- BroadcastExchange (33)
               :           :     :     :     :        +- * Project (32)
               :           :     :     :     :           +- * Filter (31)
               :           :     :     :     :              +- * ColumnarToRow (30)
               :           :     :     :     :                 +- Scan parquet spark_catalog.default.household_demographics (29)
               :           :     :     :     +- BroadcastExchange (40)
               :           :     :     :        +- * Project (39)
               :           :     :     :           +- * Filter (38)
               :           :     :     :              +- * ColumnarToRow (37)
               :           :     :     :                 +- Scan parquet spark_catalog.default.date_dim (36)
               :           :     :     +- BroadcastExchange (46)
               :           :     :        +- * Filter (45)
               :           :     :           +- * ColumnarToRow (44)
               :           :     :              +- Scan parquet spark_catalog.default.date_dim (43)
               :           :     +- BroadcastExchange (52)
               :           :        +- * Filter (51)
               :           :           +- * ColumnarToRow (50)
               :           :              +- Scan parquet spark_catalog.default.date_dim (49)
               :           +- BroadcastExchange (58)
               :              +- * Filter (57)
               :                 +- * ColumnarToRow (56)
               :                    +- Scan parquet spark_catalog.default.promotion (55)
               +- * Sort (68)
                  +- Exchange (67)
                     +- * Project (66)
                        +- * Filter (65)
                           +- * ColumnarToRow (64)
                              +- Scan parquet spark_catalog.default.catalog_returns (63)


(1) Scan parquet spark_catalog.default.catalog_sales
Output [8]: [cs_ship_date_sk#1, cs_bill_cdemo_sk#2, cs_bill_hdemo_sk#3, cs_item_sk#4, cs_promo_sk#5, cs_order_number#6, cs_quantity#7, cs_sold_date_sk#8]
Batched: true
Location: InMemoryFileIndex []
PartitionFilters: [isnotnull(cs_sold_date_sk#8)]
PushedFilters: [IsNotNull(cs_quantity), IsNotNull(cs_item_sk), IsNotNull(cs_bill_cdemo_sk), IsNotNull(cs_bill_hdemo_sk), IsNotNull(cs_ship_date_sk)]
ReadSchema: struct<cs_ship_date_sk:int,cs_bill_cdemo_sk:int,cs_bill_hdemo_sk:int,cs_item_sk:int,cs_promo_sk:int,cs_order_number:int,cs_quantity:int>

(2) ColumnarToRow [codegen id : 10]
Input [8]: [cs_ship_date_sk#1, cs_bill_cdemo_sk#2, cs_bill_hdemo_sk#3, cs_item_sk#4, cs_promo_sk#5, cs_order_number#6, cs_quantity#7, cs_sold_date_sk#8]

(3) Filter [codegen id : 10]
Input [8]: [cs_ship_date_sk#1, cs_bill_cdemo_sk#2, cs_bill_hdemo_sk#3, cs_item_sk#4, cs_promo_sk#5, cs_order_number#6, cs_quantity#7, cs_sold_date_sk#8]
Condition : ((((isnotnull(cs_quantity#7) AND isnotnull(cs_item_sk#4)) AND isnotnull(cs_bill_cdemo_sk#2)) AND isnotnull(cs_bill_hdemo_sk#3)) AND isnotnull(cs_ship_date_sk#1))

(4) Scan parquet spark_catalog.default.inventory
Output [4]: [inv_item_sk#9, inv_warehouse_sk#10, inv_quantity_on_hand#11, inv_date_sk#12]
Batched: true
Location: InMemoryFileIndex []
PartitionFilters: [isnotnull(inv_date_sk#12)]
PushedFilters: [IsNotNull(inv_quantity_on_hand), IsNotNull(inv_item_sk), IsNotNull(inv_warehouse_sk)]
ReadSchema: struct<inv_item_sk:int,inv_warehouse_sk:int,inv_quantity_on_hand:int>

(5) ColumnarToRow [codegen id : 1]
Input [4]: [inv_item_sk#9, inv_warehouse_sk#10, inv_quantity_on_hand#11, inv_date_sk#12]

(6) Filter [codegen id : 1]
Input [4]: [inv_item_sk#9, inv_warehouse_sk#10, inv_quantity_on_hand#11, inv_date_sk#12]
Condition : ((isnotnull(inv_quantity_on_hand#11) AND isnotnull(inv_item_sk#9)) AND isnotnull(inv_warehouse_sk#10))

(7) BroadcastExchange
Input [4]: [inv_item_sk#9, inv_warehouse_sk#10, inv_quantity_on_hand#11, inv_date_sk#12]
Arguments: HashedRelationBroadcastMode(List(cast(input[0, int, false] as bigint)),false), [plan_id=1]

(8) BroadcastHashJoin [codegen id : 10]
Left keys [1]: [cs_item_sk#4]
Right keys [1]: [inv_item_sk#9]
Join type: Inner
Join condition: (inv_quantity_on_hand#11 < cs_quantity#7)

(9) Project [codegen id : 10]
Output [9]: [cs_ship_date_sk#1, cs_bill_cdemo_sk#2, cs_bill_hdemo_sk#3, cs_item_sk#4, cs_promo_sk#5, cs_order_number#6, cs_sold_date_sk#8, inv_warehouse_sk#10, inv_date_sk#12]
Input [12]: [cs_ship_date_sk#1, cs_bill_cdemo_sk#2, cs_bill_hdemo_sk#3, cs_item_sk#4, cs_promo_sk#5, cs_order_number#6, cs_quantity#7, cs_sold_date_sk#8, inv_item_sk#9, inv_warehouse_sk#10, inv_quantity_on_hand#11, inv_date_sk#12]

(10) Scan parquet spark_catalog.default.warehouse
Output [2]: [w_warehouse_sk#13, w_warehouse_name#14]
Batched: true
Location [not included in comparison]/{warehouse_dir}/warehouse]
PushedFilters: [IsNotNull(w_warehouse_sk)]
ReadSchema: struct<w_warehouse_sk:int,w_warehouse_name:string>

(11) ColumnarToRow [codegen id : 2]
Input [2]: [w_warehouse_sk#13, w_warehouse_name#14]

(12) Filter [codegen id : 2]
Input [2]: [w_warehouse_sk#13, w_warehouse_name#14]
Condition : isnotnull(w_warehouse_sk#13)

(13) BroadcastExchange
Input [2]: [w_warehouse_sk#13, w_warehouse_name#14]
Arguments: HashedRelationBroadcastMode(List(cast(input[0, int, false] as bigint)),false), [plan_id=2]

(14) BroadcastHashJoin [codegen id : 10]
Left keys [1]: [inv_warehouse_sk#10]
Right keys [1]: [w_warehouse_sk#13]
Join type: Inner
Join condition: None

(15) Project [codegen id : 10]
Output [9]: [cs_ship_date_sk#1, cs_bill_cdemo_sk#2, cs_bill_hdemo_sk#3, cs_item_sk#4, cs_promo_sk#5, cs_order_number#6, cs_sold_date_sk#8, inv_date_sk#12, w_warehouse_name#14]
Input [11]: [cs_ship_date_sk#1, cs_bill_cdemo_sk#2, cs_bill_hdemo_sk#3, cs_item_sk#4, cs_promo_sk#5, cs_order_number#6, cs_sold_date_sk#8, inv_warehouse_sk#10, inv_date_sk#12, w_warehouse_sk#13, w_warehouse_name#14]

(16) Scan parquet spark_catalog.default.item
Output [2]: [i_item_sk#15, i_item_desc#16]
Batched: true
Location [not included in comparison]/{warehouse_dir}/item]
PushedFilters: [IsNotNull(i_item_sk)]
ReadSchema: struct<i_item_sk:int,i_item_desc:string>

(17) ColumnarToRow [codegen id : 3]
Input [2]: [i_item_sk#15, i_item_desc#16]

(18) Filter [codegen id : 3]
Input [2]: [i_item_sk#15, i_item_desc#16]
Condition : isnotnull(i_item_sk#15)

(19) BroadcastExchange
Input [2]: [i_item_sk#15, i_item_desc#16]
Arguments: HashedRelationBroadcastMode(List(cast(input[0, int, false] as bigint)),false), [plan_id=3]

(20) BroadcastHashJoin [codegen id : 10]
Left keys [1]: [cs_item_sk#4]
Right keys [1]: [i_item_sk#15]
Join type: Inner
Join condition: None

(21) Project [codegen id : 10]
Output [10]: [cs_ship_date_sk#1, cs_bill_cdemo_sk#2, cs_bill_hdemo_sk#3, cs_item_sk#4, cs_promo_sk#5, cs_order_number#6, cs_sold_date_sk#8, inv_date_sk#12, w_warehouse_name#14, i_item_desc#16]
Input [11]: [cs_ship_date_sk#1, cs_bill_cdemo_sk#2, cs_bill_hdemo_sk#3, cs_item_sk#4, cs_promo_sk#5, cs_order_number#6, cs_sold_date_sk#8, inv_date_sk#12, w_warehouse_name#14, i_item_sk#15, i_item_desc#16]

(22) Scan parquet spark_catalog.default.customer_demographics
Output [2]: [cd_demo_sk#17, cd_marital_status#18]
Batched: true
Location [not included in comparison]/{warehouse_dir}/customer_demographics]
PushedFilters: [IsNotNull(cd_marital_status), EqualTo(cd_marital_status,D), IsNotNull(cd_demo_sk)]
ReadSchema: struct<cd_demo_sk:int,cd_marital_status:string>

(23) ColumnarToRow [codegen id : 4]
Input [2]: [cd_demo_sk#17, cd_marital_status#18]

(24) Filter [codegen id : 4]
Input [2]: [cd_demo_sk#17, cd_marital_status#18]
Condition : ((isnotnull(cd_marital_status#18) AND (cd_marital_status#18 = D)) AND isnotnull(cd_demo_sk#17))

(25) Project [codegen id : 4]
Output [1]: [cd_demo_sk#17]
Input [2]: [cd_demo_sk#17, cd_marital_status#18]

(26) BroadcastExchange
Input [1]: [cd_demo_sk#17]
Arguments: HashedRelationBroadcastMode(List(cast(input[0, int, true] as bigint)),false), [plan_id=4]

(27) BroadcastHashJoin [codegen id : 10]
Left keys [1]: [cs_bill_cdemo_sk#2]
Right keys [1]: [cd_demo_sk#17]
Join type: Inner
Join condition: None

(28) Project [codegen id : 10]
Output [9]: [cs_ship_date_sk#1, cs_bill_hdemo_sk#3, cs_item_sk#4, cs_promo_sk#5, cs_order_number#6, cs_sold_date_sk#8, inv_date_sk#12, w_warehouse_name#14, i_item_desc#16]
Input [11]: [cs_ship_date_sk#1, cs_bill_cdemo_sk#2, cs_bill_hdemo_sk#3, cs_item_sk#4, cs_promo_sk#5, cs_order_number#6, cs_sold_date_sk#8, inv_date_sk#12, w_warehouse_name#14, i_item_desc#16, cd_demo_sk#17]

(29) Scan parquet spark_catalog.default.household_demographics
Output [2]: [hd_demo_sk#19, hd_buy_potential#20]
Batched: true
Location [not included in comparison]/{warehouse_dir}/household_demographics]
PushedFilters: [IsNotNull(hd_buy_potential), EqualTo(hd_buy_potential,>10000         ), IsNotNull(hd_demo_sk)]
ReadSchema: struct<hd_demo_sk:int,hd_buy_potential:string>

(30) ColumnarToRow [codegen id : 5]
Input [2]: [hd_demo_sk#19, hd_buy_potential#20]

(31) Filter [codegen id : 5]
Input [2]: [hd_demo_sk#19, hd_buy_potential#20]
Condition : ((isnotnull(hd_buy_potential#20) AND (hd_buy_potential#20 = >10000         )) AND isnotnull(hd_demo_sk#19))

(32) Project [codegen id : 5]
Output [1]: [hd_demo_sk#19]
Input [2]: [hd_demo_sk#19, hd_buy_potential#20]

(33) BroadcastExchange
Input [1]: [hd_demo_sk#19]
Arguments: HashedRelationBroadcastMode(List(cast(input[0, int, true] as bigint)),false), [plan_id=5]

(34) BroadcastHashJoin [codegen id : 10]
Left keys [1]: [cs_bill_hdemo_sk#3]
Right keys [1]: [hd_demo_sk#19]
Join type: Inner
Join condition: None

(35) Project [codegen id : 10]
Output [8]: [cs_ship_date_sk#1, cs_item_sk#4, cs_promo_sk#5, cs_order_number#6, cs_sold_date_sk#8, inv_date_sk#12, w_warehouse_name#14, i_item_desc#16]
Input [10]: [cs_ship_date_sk#1, cs_bill_hdemo_sk#3, cs_item_sk#4, cs_promo_sk#5, cs_order_number#6, cs_sold_date_sk#8, inv_date_sk#12, w_warehouse_name#14, i_item_desc#16, hd_demo_sk#19]

(36) Scan parquet spark_catalog.default.date_dim
Output [4]: [d_date_sk#21, d_date#22, d_week_seq#23, d_year#24]
Batched: true
Location [not included in comparison]/{warehouse_dir}/date_dim]
PushedFilters: [IsNotNull(d_year), EqualTo(d_year,1999), IsNotNull(d_date_sk), IsNotNull(d_week_seq), IsNotNull(d_date)]
ReadSchema: struct<d_date_sk:int,d_date:date,d_week_seq:int,d_year:int>

(37) ColumnarToRow [codegen id : 6]
Input [4]: [d_date_sk#21, d_date#22, d_week_seq#23, d_year#24]

(38) Filter [codegen id : 6]
Input [4]: [d_date_sk#21, d_date#22, d_week_seq#23, d_year#24]
Condition : ((((isnotnull(d_year#24) AND (d_year#24 = 1999)) AND isnotnull(d_date_sk#21)) AND isnotnull(d_week_seq#23)) AND isnotnull(d_date#22))

(39) Project [codegen id : 6]
Output [3]: [d_date_sk#21, d_date#22, d_week_seq#23]
Input [4]: [d_date_sk#21, d_date#22, d_week_seq#23, d_year#24]

(40) BroadcastExchange
Input [3]: [d_date_sk#21, d_date#22, d_week_seq#23]
Arguments: HashedRelationBroadcastMode(List(cast(input[0, int, true] as bigint)),false), [plan_id=6]

(41) BroadcastHashJoin [codegen id : 10]
Left keys [1]: [cs_sold_date_sk#8]
Right keys [1]: [d_date_sk#21]
Join type: Inner
Join condition: None

(42) Project [codegen id : 10]
Output [9]: [cs_ship_date_sk#1, cs_item_sk#4, cs_promo_sk#5, cs_order_number#6, inv_date_sk#12, w_warehouse_name#14, i_item_desc#16, d_date#22, d_week_seq#23]
Input [11]: [cs_ship_date_sk#1, cs_item_sk#4, cs_promo_sk#5, cs_order_number#6, cs_sold_date_sk#8, inv_date_sk#12, w_warehouse_name#14, i_item_desc#16, d_date_sk#21, d_date#22, d_week_seq#23]

(43) Scan parquet spark_catalog.default.date_dim
Output [2]: [d_date_sk#25, d_week_seq#26]
Batched: true
Location [not included in comparison]/{warehouse_dir}/date_dim]
PushedFilters: [IsNotNull(d_week_seq), IsNotNull(d_date_sk)]
ReadSchema: struct<d_date_sk:int,d_week_seq:int>

(44) ColumnarToRow [codegen id : 7]
Input [2]: [d_date_sk#25, d_week_seq#26]

(45) Filter [codegen id : 7]
Input [2]: [d_date_sk#25, d_week_seq#26]
Condition : (isnotnull(d_week_seq#26) AND isnotnull(d_date_sk#25))

(46) BroadcastExchange
Input [2]: [d_date_sk#25, d_week_seq#26]
Arguments: HashedRelationBroadcastMode(List((shiftleft(cast(input[1, int, false] as bigint), 32) | (cast(input[0, int, false] as bigint) & 4294967295))),false), [plan_id=7]

(47) BroadcastHashJoin [codegen id : 10]
Left keys [2]: [d_week_seq#23, inv_date_sk#12]
Right keys [2]: [d_week_seq#26, d_date_sk#25]
Join type: Inner
Join condition: None

(48) Project [codegen id : 10]
Output [8]: [cs_ship_date_sk#1, cs_item_sk#4, cs_promo_sk#5, cs_order_number#6, w_warehouse_name#14, i_item_desc#16, d_date#22, d_week_seq#23]
Input [11]: [cs_ship_date_sk#1, cs_item_sk#4, cs_promo_sk#5, cs_order_number#6, inv_date_sk#12, w_warehouse_name#14, i_item_desc#16, d_date#22, d_week_seq#23, d_date_sk#25, d_week_seq#26]

(49) Scan parquet spark_catalog.default.date_dim
Output [2]: [d_date_sk#27, d_date#28]
Batched: true
Location [not included in comparison]/{warehouse_dir}/date_dim]
PushedFilters: [IsNotNull(d_date), IsNotNull(d_date_sk)]
ReadSchema: struct<d_date_sk:int,d_date:date>

(50) ColumnarToRow [codegen id : 8]
Input [2]: [d_date_sk#27, d_date#28]

(51) Filter [codegen id : 8]
Input [2]: [d_date_sk#27, d_date#28]
Condition : (isnotnull(d_date#28) AND isnotnull(d_date_sk#27))

(52) BroadcastExchange
Input [2]: [d_date_sk#27, d_date#28]
Arguments: HashedRelationBroadcastMode(List(cast(input[0, int, false] as bigint)),false), [plan_id=8]

(53) BroadcastHashJoin [codegen id : 10]
Left keys [1]: [cs_ship_date_sk#1]
Right keys [1]: [d_date_sk#27]
Join type: Inner
Join condition: (d_date#28 > date_add(d_date#22, 5))

(54) Project [codegen id : 10]
Output [6]: [cs_item_sk#4, cs_promo_sk#5, cs_order_number#6, w_warehouse_name#14, i_item_desc#16, d_week_seq#23]
Input [10]: [cs_ship_date_sk#1, cs_item_sk#4, cs_promo_sk#5, cs_order_number#6, w_warehouse_name#14, i_item_desc#16, d_date#22, d_week_seq#23, d_date_sk#27, d_date#28]

(55) Scan parquet spark_catalog.default.promotion
Output [1]: [p_promo_sk#29]
Batched: true
Location [not included in comparison]/{warehouse_dir}/promotion]
PushedFilters: [IsNotNull(p_promo_sk)]
ReadSchema: struct<p_promo_sk:int>

(56) ColumnarToRow [codegen id : 9]
Input [1]: [p_promo_sk#29]

(57) Filter [codegen id : 9]
Input [1]: [p_promo_sk#29]
Condition : isnotnull(p_promo_sk#29)

(58) BroadcastExchange
Input [1]: [p_promo_sk#29]
Arguments: HashedRelationBroadcastMode(List(cast(input[0, int, false] as bigint)),false), [plan_id=9]

(59) BroadcastHashJoin [codegen id : 10]
Left keys [1]: [cs_promo_sk#5]
Right keys [1]: [p_promo_sk#29]
Join type: LeftOuter
Join condition: None

(60) Project [codegen id : 10]
Output [5]: [cs_item_sk#4, cs_order_number#6, w_warehouse_name#14, i_item_desc#16, d_week_seq#23]
Input [7]: [cs_item_sk#4, cs_promo_sk#5, cs_order_number#6, w_warehouse_name#14, i_item_desc#16, d_week_seq#23, p_promo_sk#29]

(61) Exchange
Input [5]: [cs_item_sk#4, cs_order_number#6, w_warehouse_name#14, i_item_desc#16, d_week_seq#23]
Arguments: hashpartitioning(cs_item_sk#4, cs_order_number#6, 5), ENSURE_REQUIREMENTS, [plan_id=10]

(62) Sort [codegen id : 11]
Input [5]: [cs_item_sk#4, cs_order_number#6, w_warehouse_name#14, i_item_desc#16, d_week_seq#23]
Arguments: [cs_item_sk#4 ASC NULLS FIRST, cs_order_number#6 ASC NULLS FIRST], false, 0

(63) Scan parquet spark_catalog.default.catalog_returns
Output [3]: [cr_item_sk#30, cr_order_number#31, cr_returned_date_sk#32]
Batched: true
Location [not included in comparison]/{warehouse_dir}/catalog_returns]
PushedFilters: [IsNotNull(cr_item_sk), IsNotNull(cr_order_number)]
ReadSchema: struct<cr_item_sk:int,cr_order_number:int>

(64) ColumnarToRow [codegen id : 12]
Input [3]: [cr_item_sk#30, cr_order_number#31, cr_returned_date_sk#32]

(65) Filter [codegen id : 12]
Input [3]: [cr_item_sk#30, cr_order_number#31, cr_returned_date_sk#32]
Condition : (isnotnull(cr_item_sk#30) AND isnotnull(cr_order_number#31))

(66) Project [codegen id : 12]
Output [2]: [cr_item_sk#30, cr_order_number#31]
Input [3]: [cr_item_sk#30, cr_order_number#31, cr_returned_date_sk#32]

(67) Exchange
Input [2]: [cr_item_sk#30, cr_order_number#31]
Arguments: hashpartitioning(cr_item_sk#30, cr_order_number#31, 5), ENSURE_REQUIREMENTS, [plan_id=11]

(68) Sort [codegen id : 13]
Input [2]: [cr_item_sk#30, cr_order_number#31]
Arguments: [cr_item_sk#30 ASC NULLS FIRST, cr_order_number#31 ASC NULLS FIRST], false, 0

(69) SortMergeJoin [codegen id : 14]
Left keys [2]: [cs_item_sk#4, cs_order_number#6]
Right keys [2]: [cr_item_sk#30, cr_order_number#31]
Join type: LeftOuter
Join condition: None

(70) Project [codegen id : 14]
Output [3]: [w_warehouse_name#14, i_item_desc#16, d_week_seq#23]
Input [7]: [cs_item_sk#4, cs_order_number#6, w_warehouse_name#14, i_item_desc#16, d_week_seq#23, cr_item_sk#30, cr_order_number#31]

(71) HashAggregate [codegen id : 14]
Input [3]: [w_warehouse_name#14, i_item_desc#16, d_week_seq#23]
Keys [3]: [i_item_desc#16, w_warehouse_name#14, d_week_seq#23]
Functions [1]: [partial_count(1)]
Aggregate Attributes [1]: [count#33]
Results [4]: [i_item_desc#16, w_warehouse_name#14, d_week_seq#23, count#34]

(72) Exchange
Input [4]: [i_item_desc#16, w_warehouse_name#14, d_week_seq#23, count#34]
Arguments: hashpartitioning(i_item_desc#16, w_warehouse_name#14, d_week_seq#23, 5), ENSURE_REQUIREMENTS, [plan_id=12]

(73) HashAggregate [codegen id : 15]
Input [4]: [i_item_desc#16, w_warehouse_name#14, d_week_seq#23, count#34]
Keys [3]: [i_item_desc#16, w_warehouse_name#14, d_week_seq#23]
Functions [1]: [count(1)]
Aggregate Attributes [1]: [count(1)#35]
Results [6]: [i_item_desc#16, w_warehouse_name#14, d_week_seq#23, count(1)#35 AS no_promo#36, count(1)#35 AS promo#37, count(1)#35 AS total_cnt#38]

(74) TakeOrderedAndProject
Input [6]: [i_item_desc#16, w_warehouse_name#14, d_week_seq#23, no_promo#36, promo#37, total_cnt#38]
Arguments: 100, [total_cnt#38 DESC NULLS LAST, i_item_desc#16 ASC NULLS FIRST, w_warehouse_name#14 ASC NULLS FIRST, d_week_seq#23 ASC NULLS FIRST], [i_item_desc#16, w_warehouse_name#14, d_week_seq#23, no_promo#36, promo#37, total_cnt#38]

