== Physical Plan ==
* HashAggregate (51)
+- * ColumnarToRow (50)
   +- CometColumnarExchange (49)
      +- RowToColumnar (48)
         +- * HashAggregate (47)
            +- * Project (46)
               +- * BroadcastHashJoin LeftAnti BuildRight (45)
                  :- * BroadcastHashJoin LeftAnti BuildRight (31)
                  :  :- * ColumnarToRow (17)
                  :  :  +- CometHashAggregate (16)
                  :  :     +- CometColumnarExchange (15)
                  :  :        +- CometHashAggregate (14)
                  :  :           +- CometProject (13)
                  :  :              +- CometBroadcastHashJoin (12)
                  :  :                 :- CometProject (8)
                  :  :                 :  +- CometBroadcastHashJoin (7)
                  :  :                 :     :- CometFilter (2)
                  :  :                 :     :  +- CometScan parquet spark_catalog.default.store_sales (1)
                  :  :                 :     +- CometBroadcastExchange (6)
                  :  :                 :        +- CometProject (5)
                  :  :                 :           +- CometFilter (4)
                  :  :                 :              +- CometScan parquet spark_catalog.default.date_dim (3)
                  :  :                 +- CometBroadcastExchange (11)
                  :  :                    +- CometFilter (10)
                  :  :                       +- CometScan parquet spark_catalog.default.customer (9)
                  :  +- BroadcastExchange (30)
                  :     +- * ColumnarToRow (29)
                  :        +- CometHashAggregate (28)
                  :           +- CometColumnarExchange (27)
                  :              +- CometHashAggregate (26)
                  :                 +- CometProject (25)
                  :                    +- CometBroadcastHashJoin (24)
                  :                       :- CometProject (22)
                  :                       :  +- CometBroadcastHashJoin (21)
                  :                       :     :- CometFilter (19)
                  :                       :     :  +- CometScan parquet spark_catalog.default.catalog_sales (18)
                  :                       :     +- ReusedExchange (20)
                  :                       +- ReusedExchange (23)
                  +- BroadcastExchange (44)
                     +- * ColumnarToRow (43)
                        +- CometHashAggregate (42)
                           +- CometColumnarExchange (41)
                              +- CometHashAggregate (40)
                                 +- CometProject (39)
                                    +- CometBroadcastHashJoin (38)
                                       :- CometProject (36)
                                       :  +- CometBroadcastHashJoin (35)
                                       :     :- CometFilter (33)
                                       :     :  +- CometScan parquet spark_catalog.default.web_sales (32)
                                       :     +- ReusedExchange (34)
                                       +- ReusedExchange (37)


(1) Scan 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) CometFilter
Input [2]: [ss_customer_sk#1, ss_sold_date_sk#2]
Condition : isnotnull(ss_customer_sk#1)

(3) Scan parquet spark_catalog.default.date_dim
Output [3]: [d_date_sk#4, d_date#5, d_month_seq#6]
Batched: true
Location [not included in comparison]/{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>

(4) CometFilter
Input [3]: [d_date_sk#4, d_date#5, d_month_seq#6]
Condition : (((isnotnull(d_month_seq#6) AND (d_month_seq#6 >= 1200)) AND (d_month_seq#6 <= 1211)) AND isnotnull(d_date_sk#4))

(5) CometProject
Input [3]: [d_date_sk#4, d_date#5, d_month_seq#6]
Arguments: [d_date_sk#4, d_date#5], [d_date_sk#4, d_date#5]

(6) CometBroadcastExchange
Input [2]: [d_date_sk#4, d_date#5]
Arguments: [d_date_sk#4, d_date#5]

(7) CometBroadcastHashJoin
Left output [2]: [ss_customer_sk#1, ss_sold_date_sk#2]
Right output [2]: [d_date_sk#4, d_date#5]
Arguments: [ss_sold_date_sk#2], [d_date_sk#4], Inner, BuildRight

(8) CometProject
Input [4]: [ss_customer_sk#1, ss_sold_date_sk#2, d_date_sk#4, d_date#5]
Arguments: [ss_customer_sk#1, d_date#5], [ss_customer_sk#1, d_date#5]

(9) Scan parquet spark_catalog.default.customer
Output [3]: [c_customer_sk#7, c_first_name#8, c_last_name#9]
Batched: true
Location [not included in comparison]/{warehouse_dir}/customer]
PushedFilters: [IsNotNull(c_customer_sk)]
ReadSchema: struct<c_customer_sk:int,c_first_name:string,c_last_name:string>

(10) CometFilter
Input [3]: [c_customer_sk#7, c_first_name#8, c_last_name#9]
Condition : isnotnull(c_customer_sk#7)

(11) CometBroadcastExchange
Input [3]: [c_customer_sk#7, c_first_name#8, c_last_name#9]
Arguments: [c_customer_sk#7, c_first_name#8, c_last_name#9]

(12) CometBroadcastHashJoin
Left output [2]: [ss_customer_sk#1, d_date#5]
Right output [3]: [c_customer_sk#7, c_first_name#8, c_last_name#9]
Arguments: [ss_customer_sk#1], [c_customer_sk#7], Inner, BuildRight

(13) CometProject
Input [5]: [ss_customer_sk#1, d_date#5, c_customer_sk#7, c_first_name#8, c_last_name#9]
Arguments: [c_last_name#9, c_first_name#8, d_date#5], [c_last_name#9, c_first_name#8, d_date#5]

(14) CometHashAggregate
Input [3]: [c_last_name#9, c_first_name#8, d_date#5]
Keys [3]: [c_last_name#9, c_first_name#8, d_date#5]
Functions: []

(15) CometColumnarExchange
Input [3]: [c_last_name#9, c_first_name#8, d_date#5]
Arguments: hashpartitioning(c_last_name#9, c_first_name#8, d_date#5, 5), ENSURE_REQUIREMENTS, CometColumnarShuffle, [plan_id=1]

(16) CometHashAggregate
Input [3]: [c_last_name#9, c_first_name#8, d_date#5]
Keys [3]: [c_last_name#9, c_first_name#8, d_date#5]
Functions: []

(17) ColumnarToRow [codegen id : 3]
Input [3]: [c_last_name#9, c_first_name#8, d_date#5]

(18) Scan 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#12)]
PushedFilters: [IsNotNull(cs_bill_customer_sk)]
ReadSchema: struct<cs_bill_customer_sk:int>

(19) CometFilter
Input [2]: [cs_bill_customer_sk#10, cs_sold_date_sk#11]
Condition : isnotnull(cs_bill_customer_sk#10)

(20) ReusedExchange [Reuses operator id: 6]
Output [2]: [d_date_sk#13, d_date#14]

(21) CometBroadcastHashJoin
Left output [2]: [cs_bill_customer_sk#10, cs_sold_date_sk#11]
Right output [2]: [d_date_sk#13, d_date#14]
Arguments: [cs_sold_date_sk#11], [d_date_sk#13], Inner, BuildRight

(22) CometProject
Input [4]: [cs_bill_customer_sk#10, cs_sold_date_sk#11, d_date_sk#13, d_date#14]
Arguments: [cs_bill_customer_sk#10, d_date#14], [cs_bill_customer_sk#10, d_date#14]

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

(24) CometBroadcastHashJoin
Left output [2]: [cs_bill_customer_sk#10, d_date#14]
Right output [3]: [c_customer_sk#15, c_first_name#16, c_last_name#17]
Arguments: [cs_bill_customer_sk#10], [c_customer_sk#15], Inner, BuildRight

(25) CometProject
Input [5]: [cs_bill_customer_sk#10, d_date#14, c_customer_sk#15, c_first_name#16, c_last_name#17]
Arguments: [c_last_name#17, c_first_name#16, d_date#14], [c_last_name#17, c_first_name#16, d_date#14]

(26) CometHashAggregate
Input [3]: [c_last_name#17, c_first_name#16, d_date#14]
Keys [3]: [c_last_name#17, c_first_name#16, d_date#14]
Functions: []

(27) CometColumnarExchange
Input [3]: [c_last_name#17, c_first_name#16, d_date#14]
Arguments: hashpartitioning(c_last_name#17, c_first_name#16, d_date#14, 5), ENSURE_REQUIREMENTS, CometColumnarShuffle, [plan_id=2]

(28) CometHashAggregate
Input [3]: [c_last_name#17, c_first_name#16, d_date#14]
Keys [3]: [c_last_name#17, c_first_name#16, d_date#14]
Functions: []

(29) ColumnarToRow [codegen id : 1]
Input [3]: [c_last_name#17, c_first_name#16, d_date#14]

(30) BroadcastExchange
Input [3]: [c_last_name#17, c_first_name#16, d_date#14]
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=3]

(31) BroadcastHashJoin [codegen id : 3]
Left keys [6]: [coalesce(c_last_name#9, ), isnull(c_last_name#9), coalesce(c_first_name#8, ), isnull(c_first_name#8), coalesce(d_date#5, 1970-01-01), isnull(d_date#5)]
Right keys [6]: [coalesce(c_last_name#17, ), isnull(c_last_name#17), coalesce(c_first_name#16, ), isnull(c_first_name#16), coalesce(d_date#14, 1970-01-01), isnull(d_date#14)]
Join type: LeftAnti
Join condition: None

(32) Scan 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#20)]
PushedFilters: [IsNotNull(ws_bill_customer_sk)]
ReadSchema: struct<ws_bill_customer_sk:int>

(33) CometFilter
Input [2]: [ws_bill_customer_sk#18, ws_sold_date_sk#19]
Condition : isnotnull(ws_bill_customer_sk#18)

(34) ReusedExchange [Reuses operator id: 6]
Output [2]: [d_date_sk#21, d_date#22]

(35) CometBroadcastHashJoin
Left output [2]: [ws_bill_customer_sk#18, ws_sold_date_sk#19]
Right output [2]: [d_date_sk#21, d_date#22]
Arguments: [ws_sold_date_sk#19], [d_date_sk#21], Inner, BuildRight

(36) CometProject
Input [4]: [ws_bill_customer_sk#18, ws_sold_date_sk#19, d_date_sk#21, d_date#22]
Arguments: [ws_bill_customer_sk#18, d_date#22], [ws_bill_customer_sk#18, d_date#22]

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

(38) CometBroadcastHashJoin
Left output [2]: [ws_bill_customer_sk#18, d_date#22]
Right output [3]: [c_customer_sk#23, c_first_name#24, c_last_name#25]
Arguments: [ws_bill_customer_sk#18], [c_customer_sk#23], Inner, BuildRight

(39) CometProject
Input [5]: [ws_bill_customer_sk#18, d_date#22, c_customer_sk#23, c_first_name#24, c_last_name#25]
Arguments: [c_last_name#25, c_first_name#24, d_date#22], [c_last_name#25, c_first_name#24, d_date#22]

(40) CometHashAggregate
Input [3]: [c_last_name#25, c_first_name#24, d_date#22]
Keys [3]: [c_last_name#25, c_first_name#24, d_date#22]
Functions: []

(41) CometColumnarExchange
Input [3]: [c_last_name#25, c_first_name#24, d_date#22]
Arguments: hashpartitioning(c_last_name#25, c_first_name#24, d_date#22, 5), ENSURE_REQUIREMENTS, CometColumnarShuffle, [plan_id=4]

(42) CometHashAggregate
Input [3]: [c_last_name#25, c_first_name#24, d_date#22]
Keys [3]: [c_last_name#25, c_first_name#24, d_date#22]
Functions: []

(43) ColumnarToRow [codegen id : 2]
Input [3]: [c_last_name#25, c_first_name#24, d_date#22]

(44) BroadcastExchange
Input [3]: [c_last_name#25, c_first_name#24, d_date#22]
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=5]

(45) BroadcastHashJoin [codegen id : 3]
Left keys [6]: [coalesce(c_last_name#9, ), isnull(c_last_name#9), coalesce(c_first_name#8, ), isnull(c_first_name#8), coalesce(d_date#5, 1970-01-01), isnull(d_date#5)]
Right keys [6]: [coalesce(c_last_name#25, ), isnull(c_last_name#25), coalesce(c_first_name#24, ), isnull(c_first_name#24), coalesce(d_date#22, 1970-01-01), isnull(d_date#22)]
Join type: LeftAnti
Join condition: None

(46) Project [codegen id : 3]
Output: []
Input [3]: [c_last_name#9, c_first_name#8, d_date#5]

(47) HashAggregate [codegen id : 3]
Input: []
Keys: []
Functions [1]: [partial_count(1)]
Aggregate Attributes [1]: [count#26]
Results [1]: [count#27]

(48) RowToColumnar
Input [1]: [count#27]

(49) CometColumnarExchange
Input [1]: [count#27]
Arguments: SinglePartition, ENSURE_REQUIREMENTS, CometColumnarShuffle, [plan_id=6]

(50) ColumnarToRow [codegen id : 4]
Input [1]: [count#27]

(51) HashAggregate [codegen id : 4]
Input [1]: [count#27]
Keys: []
Functions [1]: [count(1)]
Aggregate Attributes [1]: [count(1)#28]
Results [1]: [count(1)#28 AS count(1)#29]

===== Subqueries =====

Subquery:1 Hosting operator id = 1 Hosting Expression = ss_sold_date_sk#2 IN dynamicpruning#3
BroadcastExchange (56)
+- * ColumnarToRow (55)
   +- CometProject (54)
      +- CometFilter (53)
         +- CometScan parquet spark_catalog.default.date_dim (52)


(52) Scan parquet spark_catalog.default.date_dim
Output [3]: [d_date_sk#4, d_date#5, d_month_seq#6]
Batched: true
Location [not included in comparison]/{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>

(53) CometFilter
Input [3]: [d_date_sk#4, d_date#5, d_month_seq#6]
Condition : (((isnotnull(d_month_seq#6) AND (d_month_seq#6 >= 1200)) AND (d_month_seq#6 <= 1211)) AND isnotnull(d_date_sk#4))

(54) CometProject
Input [3]: [d_date_sk#4, d_date#5, d_month_seq#6]
Arguments: [d_date_sk#4, d_date#5], [d_date_sk#4, d_date#5]

(55) ColumnarToRow [codegen id : 1]
Input [2]: [d_date_sk#4, d_date#5]

(56) BroadcastExchange
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 = 18 Hosting Expression = cs_sold_date_sk#11 IN dynamicpruning#3

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


