/
simplified.txt
188 lines (188 loc) · 15.4 KB
/
simplified.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
TakeOrderedAndProject [c_last_name,c_first_name,sales]
Union
WholeStageCodegen (18)
HashAggregate [c_last_name,c_first_name,sum,isEmpty] [sum(CheckOverflow((promote_precision(cast(cast(cs_quantity as decimal(10,0)) as decimal(12,2))) * promote_precision(cast(cs_list_price as decimal(12,2)))), DecimalType(18,2), true)),sales,sum,isEmpty]
InputAdapter
Exchange [c_last_name,c_first_name] #1
WholeStageCodegen (17)
HashAggregate [c_last_name,c_first_name,cs_quantity,cs_list_price] [sum,isEmpty,sum,isEmpty]
Project [cs_quantity,cs_list_price,c_first_name,c_last_name]
BroadcastHashJoin [cs_sold_date_sk,d_date_sk]
Project [cs_quantity,cs_list_price,cs_sold_date_sk,c_first_name,c_last_name]
BroadcastHashJoin [cs_bill_customer_sk,c_customer_sk]
SortMergeJoin [cs_bill_customer_sk,c_customer_sk]
InputAdapter
WholeStageCodegen (6)
Sort [cs_bill_customer_sk]
InputAdapter
Exchange [cs_bill_customer_sk] #2
WholeStageCodegen (5)
Project [cs_bill_customer_sk,cs_quantity,cs_list_price,cs_sold_date_sk]
BroadcastHashJoin [cs_item_sk,item_sk]
Filter [cs_bill_customer_sk]
ColumnarToRow
InputAdapter
Scan parquet default.catalog_sales [cs_bill_customer_sk,cs_item_sk,cs_quantity,cs_list_price,cs_sold_date_sk]
SubqueryBroadcast [d_date_sk] #1
BroadcastExchange #3
WholeStageCodegen (1)
Project [d_date_sk]
Filter [d_year,d_moy,d_date_sk]
ColumnarToRow
InputAdapter
Scan parquet default.date_dim [d_date_sk,d_year,d_moy]
InputAdapter
BroadcastExchange #4
WholeStageCodegen (4)
Project [item_sk]
Filter [cnt]
HashAggregate [_groupingexpression,i_item_sk,d_date,count] [count(1),item_sk,cnt,count]
InputAdapter
Exchange [_groupingexpression,i_item_sk,d_date] #5
WholeStageCodegen (3)
HashAggregate [_groupingexpression,i_item_sk,d_date] [count,count]
Project [d_date,i_item_sk,i_item_desc]
BroadcastHashJoin [ss_item_sk,i_item_sk]
Project [ss_item_sk,d_date]
BroadcastHashJoin [ss_sold_date_sk,d_date_sk]
Filter [ss_item_sk]
ColumnarToRow
InputAdapter
Scan parquet default.store_sales [ss_item_sk,ss_sold_date_sk]
SubqueryBroadcast [d_date_sk] #2
BroadcastExchange #6
WholeStageCodegen (1)
Project [d_date_sk,d_date]
Filter [d_year,d_date_sk]
ColumnarToRow
InputAdapter
Scan parquet default.date_dim [d_date_sk,d_date,d_year]
InputAdapter
ReusedExchange [d_date_sk,d_date] #6
InputAdapter
BroadcastExchange #7
WholeStageCodegen (2)
Filter [i_item_sk]
ColumnarToRow
InputAdapter
Scan parquet default.item [i_item_sk,i_item_desc]
InputAdapter
WholeStageCodegen (9)
Sort [c_customer_sk]
Project [c_customer_sk]
Filter [ssales]
Subquery #3
WholeStageCodegen (5)
HashAggregate [max] [max(csales),tpcds_cmax,max]
InputAdapter
Exchange #10
WholeStageCodegen (4)
HashAggregate [csales] [max,max]
HashAggregate [c_customer_sk,sum,isEmpty] [sum(CheckOverflow((promote_precision(cast(cast(ss_quantity as decimal(10,0)) as decimal(12,2))) * promote_precision(cast(ss_sales_price as decimal(12,2)))), DecimalType(18,2), true)),csales,sum,isEmpty]
InputAdapter
Exchange [c_customer_sk] #11
WholeStageCodegen (3)
HashAggregate [c_customer_sk,ss_quantity,ss_sales_price] [sum,isEmpty,sum,isEmpty]
Project [ss_quantity,ss_sales_price,c_customer_sk]
BroadcastHashJoin [ss_sold_date_sk,d_date_sk]
Project [ss_quantity,ss_sales_price,ss_sold_date_sk,c_customer_sk]
BroadcastHashJoin [ss_customer_sk,c_customer_sk]
Filter [ss_customer_sk]
ColumnarToRow
InputAdapter
Scan parquet default.store_sales [ss_customer_sk,ss_quantity,ss_sales_price,ss_sold_date_sk]
SubqueryBroadcast [d_date_sk] #4
BroadcastExchange #12
WholeStageCodegen (1)
Project [d_date_sk]
Filter [d_year,d_date_sk]
ColumnarToRow
InputAdapter
Scan parquet default.date_dim [d_date_sk,d_year]
InputAdapter
ReusedExchange [c_customer_sk] #9
InputAdapter
ReusedExchange [d_date_sk] #12
HashAggregate [c_customer_sk,sum,isEmpty] [sum(CheckOverflow((promote_precision(cast(cast(ss_quantity as decimal(10,0)) as decimal(12,2))) * promote_precision(cast(ss_sales_price as decimal(12,2)))), DecimalType(18,2), true)),ssales,sum,isEmpty]
InputAdapter
Exchange [c_customer_sk] #8
WholeStageCodegen (8)
HashAggregate [c_customer_sk,ss_quantity,ss_sales_price] [sum,isEmpty,sum,isEmpty]
Project [ss_quantity,ss_sales_price,c_customer_sk]
BroadcastHashJoin [ss_customer_sk,c_customer_sk]
Project [ss_customer_sk,ss_quantity,ss_sales_price]
Filter [ss_customer_sk]
ColumnarToRow
InputAdapter
Scan parquet default.store_sales [ss_customer_sk,ss_quantity,ss_sales_price,ss_sold_date_sk]
InputAdapter
BroadcastExchange #9
WholeStageCodegen (7)
Filter [c_customer_sk]
ColumnarToRow
InputAdapter
Scan parquet default.customer [c_customer_sk]
InputAdapter
BroadcastExchange #13
WholeStageCodegen (15)
SortMergeJoin [c_customer_sk,c_customer_sk]
InputAdapter
WholeStageCodegen (11)
Sort [c_customer_sk]
InputAdapter
Exchange [c_customer_sk] #14
WholeStageCodegen (10)
Filter [c_customer_sk]
ColumnarToRow
InputAdapter
Scan parquet default.customer [c_customer_sk,c_first_name,c_last_name]
InputAdapter
WholeStageCodegen (14)
Sort [c_customer_sk]
Project [c_customer_sk]
Filter [ssales]
ReusedSubquery [tpcds_cmax] #3
HashAggregate [c_customer_sk,sum,isEmpty] [sum(CheckOverflow((promote_precision(cast(cast(ss_quantity as decimal(10,0)) as decimal(12,2))) * promote_precision(cast(ss_sales_price as decimal(12,2)))), DecimalType(18,2), true)),ssales,sum,isEmpty]
InputAdapter
ReusedExchange [c_customer_sk,sum,isEmpty] #8
InputAdapter
ReusedExchange [d_date_sk] #3
WholeStageCodegen (36)
HashAggregate [c_last_name,c_first_name,sum,isEmpty] [sum(CheckOverflow((promote_precision(cast(cast(ws_quantity as decimal(10,0)) as decimal(12,2))) * promote_precision(cast(ws_list_price as decimal(12,2)))), DecimalType(18,2), true)),sales,sum,isEmpty]
InputAdapter
Exchange [c_last_name,c_first_name] #15
WholeStageCodegen (35)
HashAggregate [c_last_name,c_first_name,ws_quantity,ws_list_price] [sum,isEmpty,sum,isEmpty]
Project [ws_quantity,ws_list_price,c_first_name,c_last_name]
BroadcastHashJoin [ws_sold_date_sk,d_date_sk]
Project [ws_quantity,ws_list_price,ws_sold_date_sk,c_first_name,c_last_name]
BroadcastHashJoin [ws_bill_customer_sk,c_customer_sk]
SortMergeJoin [ws_bill_customer_sk,c_customer_sk]
InputAdapter
WholeStageCodegen (24)
Sort [ws_bill_customer_sk]
InputAdapter
Exchange [ws_bill_customer_sk] #16
WholeStageCodegen (23)
Project [ws_bill_customer_sk,ws_quantity,ws_list_price,ws_sold_date_sk]
BroadcastHashJoin [ws_item_sk,item_sk]
Filter [ws_bill_customer_sk]
ColumnarToRow
InputAdapter
Scan parquet default.web_sales [ws_item_sk,ws_bill_customer_sk,ws_quantity,ws_list_price,ws_sold_date_sk]
ReusedSubquery [d_date_sk] #1
InputAdapter
ReusedExchange [item_sk] #4
InputAdapter
WholeStageCodegen (27)
Sort [c_customer_sk]
Project [c_customer_sk]
Filter [ssales]
ReusedSubquery [tpcds_cmax] #3
HashAggregate [c_customer_sk,sum,isEmpty] [sum(CheckOverflow((promote_precision(cast(cast(ss_quantity as decimal(10,0)) as decimal(12,2))) * promote_precision(cast(ss_sales_price as decimal(12,2)))), DecimalType(18,2), true)),ssales,sum,isEmpty]
InputAdapter
ReusedExchange [c_customer_sk,sum,isEmpty] #8
InputAdapter
ReusedExchange [c_customer_sk,c_first_name,c_last_name] #13
InputAdapter
ReusedExchange [d_date_sk] #3