== Physical Plan ==
VeloxColumnarToRow (77)
+- ^ RegularHashAggregateExecTransformer (75)
   +- ^ ProjectExecTransformer (74)
      +- ^ BroadcastHashJoinExecTransformer LeftAnti BuildRight (73)
         :- ^ BroadcastHashJoinExecTransformer LeftAnti BuildRight (48)
         :  :- ^ RegularHashAggregateExecTransformer (23)
         :  :  +- ^ InputIteratorTransformer (22)
         :  :     +- ColumnarExchange (20)
         :  :        +- VeloxResizeBatches (19)
         :  :           +- ^ ProjectExecTransformer (17)
         :  :              +- ^ FlushableHashAggregateExecTransformer (16)
         :  :                 +- ^ ProjectExecTransformer (15)
         :  :                    +- ^ BroadcastHashJoinExecTransformer Inner BuildRight (14)
         :  :                       :- ^ ProjectExecTransformer (7)
         :  :                       :  +- ^ BroadcastHashJoinExecTransformer Inner BuildRight (6)
         :  :                       :     :- ^ FilterExecTransformer (2)
         :  :                       :     :  +- ^ FileSourceScanExecTransformer parquet spark_catalog.default.store_sales (1)
         :  :                       :     +- ^ InputIteratorTransformer (5)
         :  :                       :        +- ReusedExchange (3)
         :  :                       +- ^ InputIteratorTransformer (13)
         :  :                          +- ColumnarBroadcastExchange (11)
         :  :                             +- ^ FilterExecTransformer (9)
         :  :                                +- ^ FileSourceScanExecTransformer parquet spark_catalog.default.customer (8)
         :  +- ^ InputIteratorTransformer (47)
         :     +- ColumnarBroadcastExchange (45)
         :        +- ^ RegularHashAggregateExecTransformer (43)
         :           +- ^ InputIteratorTransformer (42)
         :              +- ColumnarExchange (40)
         :                 +- VeloxResizeBatches (39)
         :                    +- ^ ProjectExecTransformer (37)
         :                       +- ^ FlushableHashAggregateExecTransformer (36)
         :                          +- ^ ProjectExecTransformer (35)
         :                             +- ^ BroadcastHashJoinExecTransformer Inner BuildRight (34)
         :                                :- ^ ProjectExecTransformer (30)
         :                                :  +- ^ BroadcastHashJoinExecTransformer Inner BuildRight (29)
         :                                :     :- ^ FilterExecTransformer (25)
         :                                :     :  +- ^ FileSourceScanExecTransformer parquet spark_catalog.default.catalog_sales (24)
         :                                :     +- ^ InputIteratorTransformer (28)
         :                                :        +- ReusedExchange (26)
         :                                +- ^ InputIteratorTransformer (33)
         :                                   +- ReusedExchange (31)
         +- ^ InputIteratorTransformer (72)
            +- ColumnarBroadcastExchange (70)
               +- ^ RegularHashAggregateExecTransformer (68)
                  +- ^ InputIteratorTransformer (67)
                     +- ColumnarExchange (65)
                        +- VeloxResizeBatches (64)
                           +- ^ ProjectExecTransformer (62)
                              +- ^ FlushableHashAggregateExecTransformer (61)
                                 +- ^ ProjectExecTransformer (60)
                                    +- ^ BroadcastHashJoinExecTransformer Inner BuildRight (59)
                                       :- ^ ProjectExecTransformer (55)
                                       :  +- ^ BroadcastHashJoinExecTransformer Inner BuildRight (54)
                                       :     :- ^ FilterExecTransformer (50)
                                       :     :  +- ^ FileSourceScanExecTransformer parquet spark_catalog.default.web_sales (49)
                                       :     +- ^ InputIteratorTransformer (53)
                                       :        +- ReusedExchange (51)
                                       +- ^ InputIteratorTransformer (58)
                                          +- ReusedExchange (56)


(1) FileSourceScanExecTransformer parquet spark_catalog.default.store_sales
Output [2]: [ss_customer_sk#1, ss_sold_date_sk#2]
Batched: true
Location: InMemoryFileIndex []
PartitionFilters: [isnotnull(ss_sold_date_sk#2), dynamicpruningexpression(ss_sold_date_sk#2 IN dynamicpruning#3)]
PushedFilters: [IsNotNull(ss_customer_sk)]
ReadSchema: struct<ss_customer_sk:int>

(2) FilterExecTransformer
Input [2]: [ss_customer_sk#1, ss_sold_date_sk#2]
Arguments: isnotnull(ss_customer_sk#1)

(3) ReusedExchange [Reuses operator id: 82]
Output [2]: [d_date_sk#4, d_date#5]

(4) InputAdapter
Input [2]: [d_date_sk#4, d_date#5]

(5) InputIteratorTransformer
Input [2]: [d_date_sk#4, d_date#5]

(6) BroadcastHashJoinExecTransformer
Left keys [1]: [ss_sold_date_sk#2]
Right keys [1]: [d_date_sk#4]
Join type: Inner
Join condition: None

(7) ProjectExecTransformer
Output [2]: [ss_customer_sk#1, d_date#5]
Input [4]: [ss_customer_sk#1, ss_sold_date_sk#2, d_date_sk#4, d_date#5]

(8) FileSourceScanExecTransformer parquet spark_catalog.default.customer
Output [3]: [c_customer_sk#6, c_first_name#7, c_last_name#8]
Batched: true
Location: InMemoryFileIndex [{warehouse_dir}/customer]
PushedFilters: [IsNotNull(c_customer_sk)]
ReadSchema: struct<c_customer_sk:int,c_first_name:string,c_last_name:string>

(9) FilterExecTransformer
Input [3]: [c_customer_sk#6, c_first_name#7, c_last_name#8]
Arguments: isnotnull(c_customer_sk#6)

(10) WholeStageCodegenTransformer (3)
Input [3]: [c_customer_sk#6, c_first_name#7, c_last_name#8]
Arguments: false

(11) ColumnarBroadcastExchange
Input [3]: [c_customer_sk#6, c_first_name#7, c_last_name#8]
Arguments: HashedRelationBroadcastMode(List(cast(input[0, int, false] as bigint)),false), [plan_id=1]

(12) InputAdapter
Input [3]: [c_customer_sk#6, c_first_name#7, c_last_name#8]

(13) InputIteratorTransformer
Input [3]: [c_customer_sk#6, c_first_name#7, c_last_name#8]

(14) BroadcastHashJoinExecTransformer
Left keys [1]: [ss_customer_sk#1]
Right keys [1]: [c_customer_sk#6]
Join type: Inner
Join condition: None

(15) ProjectExecTransformer
Output [3]: [c_last_name#8, c_first_name#7, d_date#5]
Input [5]: [ss_customer_sk#1, d_date#5, c_customer_sk#6, c_first_name#7, c_last_name#8]

(16) FlushableHashAggregateExecTransformer
Input [3]: [c_last_name#8, c_first_name#7, d_date#5]
Keys [3]: [c_last_name#8, c_first_name#7, d_date#5]
Functions: []
Aggregate Attributes: []
Results [3]: [c_last_name#8, c_first_name#7, d_date#5]

(17) ProjectExecTransformer
Output [4]: [hash(c_last_name#8, c_first_name#7, d_date#5, 42) AS hash_partition_key#9, c_last_name#8, c_first_name#7, d_date#5]
Input [3]: [c_last_name#8, c_first_name#7, d_date#5]

(18) WholeStageCodegenTransformer (4)
Input [4]: [hash_partition_key#9, c_last_name#8, c_first_name#7, d_date#5]
Arguments: false

(19) VeloxResizeBatches
Input [4]: [hash_partition_key#9, c_last_name#8, c_first_name#7, d_date#5]
Arguments: 1024, 2147483647, 10485760

(20) ColumnarExchange
Input [4]: [hash_partition_key#9, c_last_name#8, c_first_name#7, d_date#5]
Arguments: hashpartitioning(c_last_name#8, c_first_name#7, d_date#5, 1), ENSURE_REQUIREMENTS, [c_last_name#8, c_first_name#7, d_date#5], [plan_id=2], [shuffle_writer_type=hash]

(21) InputAdapter
Input [3]: [c_last_name#8, c_first_name#7, d_date#5]

(22) InputIteratorTransformer
Input [3]: [c_last_name#8, c_first_name#7, d_date#5]

(23) RegularHashAggregateExecTransformer
Input [3]: [c_last_name#8, c_first_name#7, d_date#5]
Keys [3]: [c_last_name#8, c_first_name#7, d_date#5]
Functions: []
Aggregate Attributes: []
Results [3]: [c_last_name#8, c_first_name#7, d_date#5]

(24) FileSourceScanExecTransformer parquet spark_catalog.default.catalog_sales
Output [2]: [cs_bill_customer_sk#10, cs_sold_date_sk#11]
Batched: true
Location: InMemoryFileIndex []
PartitionFilters: [isnotnull(cs_sold_date_sk#11), dynamicpruningexpression(cs_sold_date_sk#11 IN dynamicpruning#3)]
PushedFilters: [IsNotNull(cs_bill_customer_sk)]
ReadSchema: struct<cs_bill_customer_sk:int>

(25) FilterExecTransformer
Input [2]: [cs_bill_customer_sk#10, cs_sold_date_sk#11]
Arguments: isnotnull(cs_bill_customer_sk#10)

(26) ReusedExchange [Reuses operator id: 82]
Output [2]: [d_date_sk#12, d_date#13]

(27) InputAdapter
Input [2]: [d_date_sk#12, d_date#13]

(28) InputIteratorTransformer
Input [2]: [d_date_sk#12, d_date#13]

(29) BroadcastHashJoinExecTransformer
Left keys [1]: [cs_sold_date_sk#11]
Right keys [1]: [d_date_sk#12]
Join type: Inner
Join condition: None

(30) ProjectExecTransformer
Output [2]: [cs_bill_customer_sk#10, d_date#13]
Input [4]: [cs_bill_customer_sk#10, cs_sold_date_sk#11, d_date_sk#12, d_date#13]

(31) ReusedExchange [Reuses operator id: 11]
Output [3]: [c_customer_sk#14, c_first_name#15, c_last_name#16]

(32) InputAdapter
Input [3]: [c_customer_sk#14, c_first_name#15, c_last_name#16]

(33) InputIteratorTransformer
Input [3]: [c_customer_sk#14, c_first_name#15, c_last_name#16]

(34) BroadcastHashJoinExecTransformer
Left keys [1]: [cs_bill_customer_sk#10]
Right keys [1]: [c_customer_sk#14]
Join type: Inner
Join condition: None

(35) ProjectExecTransformer
Output [3]: [c_last_name#16, c_first_name#15, d_date#13]
Input [5]: [cs_bill_customer_sk#10, d_date#13, c_customer_sk#14, c_first_name#15, c_last_name#16]

(36) FlushableHashAggregateExecTransformer
Input [3]: [c_last_name#16, c_first_name#15, d_date#13]
Keys [3]: [c_last_name#16, c_first_name#15, d_date#13]
Functions: []
Aggregate Attributes: []
Results [3]: [c_last_name#16, c_first_name#15, d_date#13]

(37) ProjectExecTransformer
Output [4]: [hash(c_last_name#16, c_first_name#15, d_date#13, 42) AS hash_partition_key#17, c_last_name#16, c_first_name#15, d_date#13]
Input [3]: [c_last_name#16, c_first_name#15, d_date#13]

(38) WholeStageCodegenTransformer (8)
Input [4]: [hash_partition_key#17, c_last_name#16, c_first_name#15, d_date#13]
Arguments: false

(39) VeloxResizeBatches
Input [4]: [hash_partition_key#17, c_last_name#16, c_first_name#15, d_date#13]
Arguments: 1024, 2147483647, 10485760

(40) ColumnarExchange
Input [4]: [hash_partition_key#17, c_last_name#16, c_first_name#15, d_date#13]
Arguments: hashpartitioning(c_last_name#16, c_first_name#15, d_date#13, 1), ENSURE_REQUIREMENTS, [c_last_name#16, c_first_name#15, d_date#13], [plan_id=3], [shuffle_writer_type=hash]

(41) InputAdapter
Input [3]: [c_last_name#16, c_first_name#15, d_date#13]

(42) InputIteratorTransformer
Input [3]: [c_last_name#16, c_first_name#15, d_date#13]

(43) RegularHashAggregateExecTransformer
Input [3]: [c_last_name#16, c_first_name#15, d_date#13]
Keys [3]: [c_last_name#16, c_first_name#15, d_date#13]
Functions: []
Aggregate Attributes: []
Results [3]: [c_last_name#16, c_first_name#15, d_date#13]

(44) WholeStageCodegenTransformer (9)
Input [3]: [c_last_name#16, c_first_name#15, d_date#13]
Arguments: false

(45) ColumnarBroadcastExchange
Input [3]: [c_last_name#16, c_first_name#15, d_date#13]
Arguments: HashedRelationBroadcastMode(List(coalesce(input[0, string, true], ), isnull(input[0, string, true]), coalesce(input[1, string, true], ), isnull(input[1, string, true]), coalesce(input[2, date, true], 1970-01-01), isnull(input[2, date, true])),false), [plan_id=4]

(46) InputAdapter
Input [3]: [c_last_name#16, c_first_name#15, d_date#13]

(47) InputIteratorTransformer
Input [3]: [c_last_name#16, c_first_name#15, d_date#13]

(48) BroadcastHashJoinExecTransformer
Left keys [6]: [coalesce(c_last_name#8, ), isnull(c_last_name#8), coalesce(c_first_name#7, ), isnull(c_first_name#7), coalesce(d_date#5, 1970-01-01), isnull(d_date#5)]
Right keys [6]: [coalesce(c_last_name#16, ), isnull(c_last_name#16), coalesce(c_first_name#15, ), isnull(c_first_name#15), coalesce(d_date#13, 1970-01-01), isnull(d_date#13)]
Join type: LeftAnti
Join condition: None

(49) FileSourceScanExecTransformer parquet spark_catalog.default.web_sales
Output [2]: [ws_bill_customer_sk#18, ws_sold_date_sk#19]
Batched: true
Location: InMemoryFileIndex []
PartitionFilters: [isnotnull(ws_sold_date_sk#19), dynamicpruningexpression(ws_sold_date_sk#19 IN dynamicpruning#3)]
PushedFilters: [IsNotNull(ws_bill_customer_sk)]
ReadSchema: struct<ws_bill_customer_sk:int>

(50) FilterExecTransformer
Input [2]: [ws_bill_customer_sk#18, ws_sold_date_sk#19]
Arguments: isnotnull(ws_bill_customer_sk#18)

(51) ReusedExchange [Reuses operator id: 82]
Output [2]: [d_date_sk#20, d_date#21]

(52) InputAdapter
Input [2]: [d_date_sk#20, d_date#21]

(53) InputIteratorTransformer
Input [2]: [d_date_sk#20, d_date#21]

(54) BroadcastHashJoinExecTransformer
Left keys [1]: [ws_sold_date_sk#19]
Right keys [1]: [d_date_sk#20]
Join type: Inner
Join condition: None

(55) ProjectExecTransformer
Output [2]: [ws_bill_customer_sk#18, d_date#21]
Input [4]: [ws_bill_customer_sk#18, ws_sold_date_sk#19, d_date_sk#20, d_date#21]

(56) ReusedExchange [Reuses operator id: 11]
Output [3]: [c_customer_sk#22, c_first_name#23, c_last_name#24]

(57) InputAdapter
Input [3]: [c_customer_sk#22, c_first_name#23, c_last_name#24]

(58) InputIteratorTransformer
Input [3]: [c_customer_sk#22, c_first_name#23, c_last_name#24]

(59) BroadcastHashJoinExecTransformer
Left keys [1]: [ws_bill_customer_sk#18]
Right keys [1]: [c_customer_sk#22]
Join type: Inner
Join condition: None

(60) ProjectExecTransformer
Output [3]: [c_last_name#24, c_first_name#23, d_date#21]
Input [5]: [ws_bill_customer_sk#18, d_date#21, c_customer_sk#22, c_first_name#23, c_last_name#24]

(61) FlushableHashAggregateExecTransformer
Input [3]: [c_last_name#24, c_first_name#23, d_date#21]
Keys [3]: [c_last_name#24, c_first_name#23, d_date#21]
Functions: []
Aggregate Attributes: []
Results [3]: [c_last_name#24, c_first_name#23, d_date#21]

(62) ProjectExecTransformer
Output [4]: [hash(c_last_name#24, c_first_name#23, d_date#21, 42) AS hash_partition_key#25, c_last_name#24, c_first_name#23, d_date#21]
Input [3]: [c_last_name#24, c_first_name#23, d_date#21]

(63) WholeStageCodegenTransformer (13)
Input [4]: [hash_partition_key#25, c_last_name#24, c_first_name#23, d_date#21]
Arguments: false

(64) VeloxResizeBatches
Input [4]: [hash_partition_key#25, c_last_name#24, c_first_name#23, d_date#21]
Arguments: 1024, 2147483647, 10485760

(65) ColumnarExchange
Input [4]: [hash_partition_key#25, c_last_name#24, c_first_name#23, d_date#21]
Arguments: hashpartitioning(c_last_name#24, c_first_name#23, d_date#21, 1), ENSURE_REQUIREMENTS, [c_last_name#24, c_first_name#23, d_date#21], [plan_id=5], [shuffle_writer_type=hash]

(66) InputAdapter
Input [3]: [c_last_name#24, c_first_name#23, d_date#21]

(67) InputIteratorTransformer
Input [3]: [c_last_name#24, c_first_name#23, d_date#21]

(68) RegularHashAggregateExecTransformer
Input [3]: [c_last_name#24, c_first_name#23, d_date#21]
Keys [3]: [c_last_name#24, c_first_name#23, d_date#21]
Functions: []
Aggregate Attributes: []
Results [3]: [c_last_name#24, c_first_name#23, d_date#21]

(69) WholeStageCodegenTransformer (14)
Input [3]: [c_last_name#24, c_first_name#23, d_date#21]
Arguments: false

(70) ColumnarBroadcastExchange
Input [3]: [c_last_name#24, c_first_name#23, d_date#21]
Arguments: HashedRelationBroadcastMode(List(coalesce(input[0, string, true], ), isnull(input[0, string, true]), coalesce(input[1, string, true], ), isnull(input[1, string, true]), coalesce(input[2, date, true], 1970-01-01), isnull(input[2, date, true])),false), [plan_id=6]

(71) InputAdapter
Input [3]: [c_last_name#24, c_first_name#23, d_date#21]

(72) InputIteratorTransformer
Input [3]: [c_last_name#24, c_first_name#23, d_date#21]

(73) BroadcastHashJoinExecTransformer
Left keys [6]: [coalesce(c_last_name#8, ), isnull(c_last_name#8), coalesce(c_first_name#7, ), isnull(c_first_name#7), coalesce(d_date#5, 1970-01-01), isnull(d_date#5)]
Right keys [6]: [coalesce(c_last_name#24, ), isnull(c_last_name#24), coalesce(c_first_name#23, ), isnull(c_first_name#23), coalesce(d_date#21, 1970-01-01), isnull(d_date#21)]
Join type: LeftAnti
Join condition: None

(74) ProjectExecTransformer
Output: []
Input [3]: [c_last_name#8, c_first_name#7, d_date#5]

(75) RegularHashAggregateExecTransformer
Input: []
Keys: []
Functions [1]: [count(1)]
Aggregate Attributes [1]: [count(1)#26]
Results [1]: [count(1)#26 AS count(1)#27]

(76) WholeStageCodegenTransformer (15)
Input [1]: [count(1)#27]
Arguments: false

(77) VeloxColumnarToRow
Input [1]: [count(1)#27]

===== Subqueries =====

Subquery:1 Hosting operator id = 1 Hosting Expression = ss_sold_date_sk#2 IN dynamicpruning#3
ColumnarBroadcastExchange (82)
+- ^ ProjectExecTransformer (80)
   +- ^ FilterExecTransformer (79)
      +- ^ FileSourceScanExecTransformer parquet spark_catalog.default.date_dim (78)


(78) FileSourceScanExecTransformer parquet spark_catalog.default.date_dim
Output [3]: [d_date_sk#4, d_date#5, d_month_seq#28]
Batched: true
Location: InMemoryFileIndex [{warehouse_dir}/date_dim]
PushedFilters: [IsNotNull(d_month_seq), GreaterThanOrEqual(d_month_seq,1200), LessThanOrEqual(d_month_seq,1211), IsNotNull(d_date_sk)]
ReadSchema: struct<d_date_sk:int,d_date:date,d_month_seq:int>

(79) FilterExecTransformer
Input [3]: [d_date_sk#4, d_date#5, d_month_seq#28]
Arguments: (((isnotnull(d_month_seq#28) AND (d_month_seq#28 >= 1200)) AND (d_month_seq#28 <= 1211)) AND isnotnull(d_date_sk#4))

(80) ProjectExecTransformer
Output [2]: [d_date_sk#4, d_date#5]
Input [3]: [d_date_sk#4, d_date#5, d_month_seq#28]

(81) WholeStageCodegenTransformer (1)
Input [2]: [d_date_sk#4, d_date#5]
Arguments: false

(82) ColumnarBroadcastExchange
Input [2]: [d_date_sk#4, d_date#5]
Arguments: HashedRelationBroadcastMode(List(cast(input[0, int, true] as bigint)),false), [plan_id=7]

Subquery:2 Hosting operator id = 24 Hosting Expression = cs_sold_date_sk#11 IN dynamicpruning#3

Subquery:3 Hosting operator id = 49 Hosting Expression = ws_sold_date_sk#19 IN dynamicpruning#3


