/
simplified.txt
74 lines (74 loc) · 5.1 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
TakeOrderedAndProject [c_customer_id]
WholeStageCodegen (12)
Project [c_customer_id]
SortMergeJoin [ctr_customer_sk,c_customer_sk]
InputAdapter
WholeStageCodegen (9)
Sort [ctr_customer_sk]
InputAdapter
Exchange [ctr_customer_sk] #1
WholeStageCodegen (8)
Project [ctr_customer_sk]
BroadcastHashJoin [ctr_store_sk,s_store_sk]
Project [ctr_customer_sk,ctr_store_sk]
BroadcastHashJoin [ctr_store_sk,ctr_store_skL,ctr_total_return,(CAST(avg(ctr_total_return) AS DECIMAL(21,6)) * CAST(1.2 AS DECIMAL(21,6)))]
Filter [ctr_total_return]
HashAggregate [sr_customer_sk,sr_store_sk,sum] [sum(UnscaledValue(sr_return_amt)),ctr_customer_sk,ctr_store_sk,ctr_total_return,sum]
InputAdapter
Exchange [sr_customer_sk,sr_store_sk] #2
WholeStageCodegen (2)
HashAggregate [sr_customer_sk,sr_store_sk,sr_return_amt] [sum,sum]
Project [sr_customer_sk,sr_store_sk,sr_return_amt]
BroadcastHashJoin [sr_returned_date_sk,d_date_sk]
Filter [sr_returned_date_sk,sr_store_sk,sr_customer_sk]
ColumnarToRow
InputAdapter
Scan parquet default.store_returns [sr_returned_date_sk,sr_customer_sk,sr_store_sk,sr_return_amt]
InputAdapter
BroadcastExchange #3
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
BroadcastExchange #4
WholeStageCodegen (6)
Filter [(CAST(avg(ctr_total_return) AS DECIMAL(21,6)) * CAST(1.2 AS DECIMAL(21,6)))]
HashAggregate [ctr_store_sk,sum,count] [avg(ctr_total_return),(CAST(avg(ctr_total_return) AS DECIMAL(21,6)) * CAST(1.2 AS DECIMAL(21,6))),ctr_store_skL,sum,count]
InputAdapter
Exchange [ctr_store_sk] #5
WholeStageCodegen (5)
HashAggregate [ctr_store_sk,ctr_total_return] [sum,count,sum,count]
HashAggregate [sr_customer_sk,sr_store_sk,sum] [sum(UnscaledValue(sr_return_amt)),ctr_store_sk,ctr_total_return,sum]
InputAdapter
Exchange [sr_customer_sk,sr_store_sk] #6
WholeStageCodegen (4)
HashAggregate [sr_customer_sk,sr_store_sk,sr_return_amt] [sum,sum]
Project [sr_customer_sk,sr_store_sk,sr_return_amt]
BroadcastHashJoin [sr_returned_date_sk,d_date_sk]
Filter [sr_returned_date_sk,sr_store_sk]
ColumnarToRow
InputAdapter
Scan parquet default.store_returns [sr_returned_date_sk,sr_customer_sk,sr_store_sk,sr_return_amt]
InputAdapter
ReusedExchange [d_date_sk] #3
InputAdapter
BroadcastExchange #7
WholeStageCodegen (7)
Project [s_store_sk]
Filter [s_state,s_store_sk]
ColumnarToRow
InputAdapter
Scan parquet default.store [s_store_sk,s_state]
InputAdapter
WholeStageCodegen (11)
Sort [c_customer_sk]
InputAdapter
Exchange [c_customer_sk] #8
WholeStageCodegen (10)
Filter [c_customer_sk]
ColumnarToRow
InputAdapter
Scan parquet default.customer [c_customer_sk,c_customer_id]