Skip to content

Commit

Permalink
update expected results for q51
Browse files Browse the repository at this point in the history
  • Loading branch information
huaxingao committed Aug 22, 2024
1 parent 1f8a29e commit 2777d18
Show file tree
Hide file tree
Showing 4 changed files with 168 additions and 164 deletions.
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
== Physical Plan ==
* ColumnarToRow (43)
+- CometTakeOrderedAndProject (42)
+- CometFilter (41)
+- CometWindowExec (40)
TakeOrderedAndProject (43)
+- * Filter (42)
+- Window (41)
+- * ColumnarToRow (40)
+- CometSort (39)
+- CometColumnarExchange (38)
+- CometProject (37)
Expand Down Expand Up @@ -213,20 +213,20 @@ Arguments: hashpartitioning(item_sk#22, 5), ENSURE_REQUIREMENTS, CometColumnarSh
Input [4]: [item_sk#22, d_date#23, web_sales#24, store_sales#25]
Arguments: [item_sk#22, d_date#23, web_sales#24, store_sales#25], [item_sk#22 ASC NULLS FIRST, d_date#23 ASC NULLS FIRST]

(40) CometWindowExec
(40) ColumnarToRow [codegen id : 5]
Input [4]: [item_sk#22, d_date#23, web_sales#24, store_sales#25]
Arguments: [item_sk#22, d_date#23, web_sales#24, store_sales#25, web_cumulative#26, store_cumulative#27], [max(web_sales#24) windowspecdefinition(item_sk#22, d_date#23 ASC NULLS FIRST, specifiedwindowframe(RowFrame, unboundedpreceding$(), currentrow$())) AS web_cumulative#26, max(store_sales#25) windowspecdefinition(item_sk#22, d_date#23 ASC NULLS FIRST, specifiedwindowframe(RowFrame, unboundedpreceding$(), currentrow$())) AS store_cumulative#27], [item_sk#22], [d_date#23 ASC NULLS FIRST]

(41) CometFilter
Input [6]: [item_sk#22, d_date#23, web_sales#24, store_sales#25, web_cumulative#26, store_cumulative#27]
Condition : ((isnotnull(web_cumulative#26) AND isnotnull(store_cumulative#27)) AND (web_cumulative#26 > store_cumulative#27))
(41) Window
Input [4]: [item_sk#22, d_date#23, web_sales#24, store_sales#25]
Arguments: [max(web_sales#24) windowspecdefinition(item_sk#22, d_date#23 ASC NULLS FIRST, specifiedwindowframe(RowFrame, unboundedpreceding$(), currentrow$())) AS web_cumulative#26, max(store_sales#25) windowspecdefinition(item_sk#22, d_date#23 ASC NULLS FIRST, specifiedwindowframe(RowFrame, unboundedpreceding$(), currentrow$())) AS store_cumulative#27], [item_sk#22], [d_date#23 ASC NULLS FIRST]

(42) CometTakeOrderedAndProject
(42) Filter [codegen id : 6]
Input [6]: [item_sk#22, d_date#23, web_sales#24, store_sales#25, web_cumulative#26, store_cumulative#27]
Arguments: TakeOrderedAndProject(limit=100, orderBy=[item_sk#22 ASC NULLS FIRST,d_date#23 ASC NULLS FIRST], output=[item_sk#22,d_date#23,web_sales#24,store_sales#25,web_cumulative#26,store_cumulative#27]), [item_sk#22, d_date#23, web_sales#24, store_sales#25, web_cumulative#26, store_cumulative#27], 100, [item_sk#22 ASC NULLS FIRST, d_date#23 ASC NULLS FIRST], [item_sk#22, d_date#23, web_sales#24, store_sales#25, web_cumulative#26, store_cumulative#27]
Condition : ((isnotnull(web_cumulative#26) AND isnotnull(store_cumulative#27)) AND (web_cumulative#26 > store_cumulative#27))

(43) ColumnarToRow [codegen id : 5]
(43) TakeOrderedAndProject
Input [6]: [item_sk#22, d_date#23, web_sales#24, store_sales#25, web_cumulative#26, store_cumulative#27]
Arguments: 100, [item_sk#22 ASC NULLS FIRST, d_date#23 ASC NULLS FIRST], [item_sk#22, d_date#23, web_sales#24, store_sales#25, web_cumulative#26, store_cumulative#27]

===== Subqueries =====

Expand Down
Original file line number Diff line number Diff line change
@@ -1,62 +1,64 @@
WholeStageCodegen (5)
ColumnarToRow
InputAdapter
CometTakeOrderedAndProject [item_sk,d_date,web_sales,store_sales,web_cumulative,store_cumulative]
CometFilter [item_sk,d_date,web_sales,store_sales,web_cumulative,store_cumulative]
CometWindowExec [item_sk,d_date,web_sales,store_sales,web_cumulative,store_cumulative]
CometSort [item_sk,d_date,web_sales,store_sales]
CometColumnarExchange [item_sk] #1
CometProject [item_sk,item_sk,d_date,d_date,cume_sales,cume_sales] [item_sk,d_date,web_sales,store_sales]
CometSortMergeJoin [item_sk,d_date,cume_sales,item_sk,d_date,cume_sales]
CometSort [item_sk,d_date,cume_sales]
CometColumnarExchange [item_sk,d_date] #2
RowToColumnar
WholeStageCodegen (2)
Project [item_sk,d_date,cume_sales]
InputAdapter
Window [_w0,ws_item_sk,d_date]
WholeStageCodegen (1)
ColumnarToRow
InputAdapter
CometSort [item_sk,d_date,_w0,ws_item_sk]
CometColumnarExchange [ws_item_sk] #3
CometHashAggregate [item_sk,d_date,_w0,ws_item_sk,sum,sum(UnscaledValue(ws_sales_price))]
CometColumnarExchange [ws_item_sk,d_date] #4
CometHashAggregate [ws_item_sk,d_date,sum,ws_sales_price]
CometProject [ws_item_sk,ws_sales_price,d_date]
CometBroadcastHashJoin [ws_item_sk,ws_sales_price,ws_sold_date_sk,d_date_sk,d_date]
CometFilter [ws_item_sk,ws_sales_price,ws_sold_date_sk]
CometScan parquet spark_catalog.default.web_sales [ws_item_sk,ws_sales_price,ws_sold_date_sk]
SubqueryBroadcast [d_date_sk] #1
BroadcastExchange #5
WholeStageCodegen (1)
ColumnarToRow
InputAdapter
CometProject [d_date_sk,d_date]
CometFilter [d_date_sk,d_date,d_month_seq]
CometScan parquet spark_catalog.default.date_dim [d_date_sk,d_date,d_month_seq]
CometBroadcastExchange [d_date_sk,d_date] #6
CometProject [d_date_sk,d_date]
CometFilter [d_date_sk,d_date,d_month_seq]
CometScan parquet spark_catalog.default.date_dim [d_date_sk,d_date,d_month_seq]
CometSort [item_sk,d_date,cume_sales]
CometColumnarExchange [item_sk,d_date] #7
RowToColumnar
WholeStageCodegen (4)
Project [item_sk,d_date,cume_sales]
InputAdapter
Window [_w0,ss_item_sk,d_date]
WholeStageCodegen (3)
ColumnarToRow
InputAdapter
CometSort [item_sk,d_date,_w0,ss_item_sk]
CometColumnarExchange [ss_item_sk] #8
CometHashAggregate [item_sk,d_date,_w0,ss_item_sk,sum,sum(UnscaledValue(ss_sales_price))]
CometColumnarExchange [ss_item_sk,d_date] #9
CometHashAggregate [ss_item_sk,d_date,sum,ss_sales_price]
CometProject [ss_item_sk,ss_sales_price,d_date]
CometBroadcastHashJoin [ss_item_sk,ss_sales_price,ss_sold_date_sk,d_date_sk,d_date]
CometFilter [ss_item_sk,ss_sales_price,ss_sold_date_sk]
CometScan parquet spark_catalog.default.store_sales [ss_item_sk,ss_sales_price,ss_sold_date_sk]
ReusedSubquery [d_date_sk] #1
ReusedExchange [d_date_sk,d_date] #6
TakeOrderedAndProject [item_sk,d_date,web_sales,store_sales,web_cumulative,store_cumulative]
WholeStageCodegen (6)
Filter [web_cumulative,store_cumulative]
InputAdapter
Window [web_sales,item_sk,d_date,store_sales]
WholeStageCodegen (5)
ColumnarToRow
InputAdapter
CometSort [item_sk,d_date,web_sales,store_sales]
CometColumnarExchange [item_sk] #1
CometProject [item_sk,item_sk,d_date,d_date,cume_sales,cume_sales] [item_sk,d_date,web_sales,store_sales]
CometSortMergeJoin [item_sk,d_date,cume_sales,item_sk,d_date,cume_sales]
CometSort [item_sk,d_date,cume_sales]
CometColumnarExchange [item_sk,d_date] #2
RowToColumnar
WholeStageCodegen (2)
Project [item_sk,d_date,cume_sales]
InputAdapter
Window [_w0,ws_item_sk,d_date]
WholeStageCodegen (1)
ColumnarToRow
InputAdapter
CometSort [item_sk,d_date,_w0,ws_item_sk]
CometColumnarExchange [ws_item_sk] #3
CometHashAggregate [item_sk,d_date,_w0,ws_item_sk,sum,sum(UnscaledValue(ws_sales_price))]
CometColumnarExchange [ws_item_sk,d_date] #4
CometHashAggregate [ws_item_sk,d_date,sum,ws_sales_price]
CometProject [ws_item_sk,ws_sales_price,d_date]
CometBroadcastHashJoin [ws_item_sk,ws_sales_price,ws_sold_date_sk,d_date_sk,d_date]
CometFilter [ws_item_sk,ws_sales_price,ws_sold_date_sk]
CometScan parquet spark_catalog.default.web_sales [ws_item_sk,ws_sales_price,ws_sold_date_sk]
SubqueryBroadcast [d_date_sk] #1
BroadcastExchange #5
WholeStageCodegen (1)
ColumnarToRow
InputAdapter
CometProject [d_date_sk,d_date]
CometFilter [d_date_sk,d_date,d_month_seq]
CometScan parquet spark_catalog.default.date_dim [d_date_sk,d_date,d_month_seq]
CometBroadcastExchange [d_date_sk,d_date] #6
CometProject [d_date_sk,d_date]
CometFilter [d_date_sk,d_date,d_month_seq]
CometScan parquet spark_catalog.default.date_dim [d_date_sk,d_date,d_month_seq]
CometSort [item_sk,d_date,cume_sales]
CometColumnarExchange [item_sk,d_date] #7
RowToColumnar
WholeStageCodegen (4)
Project [item_sk,d_date,cume_sales]
InputAdapter
Window [_w0,ss_item_sk,d_date]
WholeStageCodegen (3)
ColumnarToRow
InputAdapter
CometSort [item_sk,d_date,_w0,ss_item_sk]
CometColumnarExchange [ss_item_sk] #8
CometHashAggregate [item_sk,d_date,_w0,ss_item_sk,sum,sum(UnscaledValue(ss_sales_price))]
CometColumnarExchange [ss_item_sk,d_date] #9
CometHashAggregate [ss_item_sk,d_date,sum,ss_sales_price]
CometProject [ss_item_sk,ss_sales_price,d_date]
CometBroadcastHashJoin [ss_item_sk,ss_sales_price,ss_sold_date_sk,d_date_sk,d_date]
CometFilter [ss_item_sk,ss_sales_price,ss_sold_date_sk]
CometScan parquet spark_catalog.default.store_sales [ss_item_sk,ss_sales_price,ss_sold_date_sk]
ReusedSubquery [d_date_sk] #1
ReusedExchange [d_date_sk,d_date] #6
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
== Physical Plan ==
* ColumnarToRow (51)
+- CometTakeOrderedAndProject (50)
+- CometFilter (49)
+- CometWindowExec (48)
TakeOrderedAndProject (51)
+- * Filter (50)
+- Window (49)
+- * ColumnarToRow (48)
+- CometSort (47)
+- CometColumnarExchange (46)
+- CometProject (45)
Expand Down Expand Up @@ -253,20 +253,20 @@ Arguments: hashpartitioning(item_sk#26, 5), ENSURE_REQUIREMENTS, CometColumnarSh
Input [4]: [item_sk#26, d_date#27, web_sales#28, store_sales#29]
Arguments: [item_sk#26, d_date#27, web_sales#28, store_sales#29], [item_sk#26 ASC NULLS FIRST, d_date#27 ASC NULLS FIRST]

(48) CometWindowExec
(48) ColumnarToRow [codegen id : 9]
Input [4]: [item_sk#26, d_date#27, web_sales#28, store_sales#29]
Arguments: [item_sk#26, d_date#27, web_sales#28, store_sales#29, web_cumulative#30, store_cumulative#31], [max(web_sales#28) windowspecdefinition(item_sk#26, d_date#27 ASC NULLS FIRST, specifiedwindowframe(RowFrame, unboundedpreceding$(), currentrow$())) AS web_cumulative#30, max(store_sales#29) windowspecdefinition(item_sk#26, d_date#27 ASC NULLS FIRST, specifiedwindowframe(RowFrame, unboundedpreceding$(), currentrow$())) AS store_cumulative#31], [item_sk#26], [d_date#27 ASC NULLS FIRST]

(49) CometFilter
Input [6]: [item_sk#26, d_date#27, web_sales#28, store_sales#29, web_cumulative#30, store_cumulative#31]
Condition : ((isnotnull(web_cumulative#30) AND isnotnull(store_cumulative#31)) AND (web_cumulative#30 > store_cumulative#31))
(49) Window
Input [4]: [item_sk#26, d_date#27, web_sales#28, store_sales#29]
Arguments: [max(web_sales#28) windowspecdefinition(item_sk#26, d_date#27 ASC NULLS FIRST, specifiedwindowframe(RowFrame, unboundedpreceding$(), currentrow$())) AS web_cumulative#30, max(store_sales#29) windowspecdefinition(item_sk#26, d_date#27 ASC NULLS FIRST, specifiedwindowframe(RowFrame, unboundedpreceding$(), currentrow$())) AS store_cumulative#31], [item_sk#26], [d_date#27 ASC NULLS FIRST]

(50) CometTakeOrderedAndProject
(50) Filter [codegen id : 10]
Input [6]: [item_sk#26, d_date#27, web_sales#28, store_sales#29, web_cumulative#30, store_cumulative#31]
Arguments: TakeOrderedAndProject(limit=100, orderBy=[item_sk#26 ASC NULLS FIRST,d_date#27 ASC NULLS FIRST], output=[item_sk#26,d_date#27,web_sales#28,store_sales#29,web_cumulative#30,store_cumulative#31]), [item_sk#26, d_date#27, web_sales#28, store_sales#29, web_cumulative#30, store_cumulative#31], 100, [item_sk#26 ASC NULLS FIRST, d_date#27 ASC NULLS FIRST], [item_sk#26, d_date#27, web_sales#28, store_sales#29, web_cumulative#30, store_cumulative#31]
Condition : ((isnotnull(web_cumulative#30) AND isnotnull(store_cumulative#31)) AND (web_cumulative#30 > store_cumulative#31))

(51) ColumnarToRow [codegen id : 9]
(51) TakeOrderedAndProject
Input [6]: [item_sk#26, d_date#27, web_sales#28, store_sales#29, web_cumulative#30, store_cumulative#31]
Arguments: 100, [item_sk#26 ASC NULLS FIRST, d_date#27 ASC NULLS FIRST], [item_sk#26, d_date#27, web_sales#28, store_sales#29, web_cumulative#30, store_cumulative#31]

===== Subqueries =====

Expand Down
Loading

0 comments on commit 2777d18

Please sign in to comment.