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
---
source: src/client/src/tests/mod.rs
expression: displayable.tree_render().to_string()
---
┌───────────────────────────┐
│ SortPreservingMergeExec │
│ -------------------- │
│ revenue DESClimit: 20 │
└─────────────┬─────────────┘
┌─────────────┴─────────────┐
│ SortExec(TopK) │
│ -------------------- │
│ limit: 20 │
│ │
│ revenue@2 DESC │
└─────────────┬─────────────┘
┌─────────────┴─────────────┐
│ ProjectionExec │
│ -------------------- │
│ c_acctbal: c_acctbal │
│ c_address: c_address │
│ c_comment: c_comment │
│ c_custkey: c_custkey │
│ c_name: c_name │
│ c_phone: c_phone │
│ n_name: n_name │
│ │
│ revenue: │
│ sum(lineitem │
│ .l_extendedp │
│ rice * Int64(1) - lineitem│
│ .l_discount) │
└─────────────┬─────────────┘
┌─────────────┴─────────────┐
│ AggregateExec │
│ -------------------- │
│ aggr: │
│ sum(lineitem │
│ .l_extendedp │
│ rice * Int64(1) - lineitem│
│ .l_discount) │
│ │
│ group_by: │
│ c_custkey, c_name, │
│ c_acctbal, │
│ c_phone, n_name, │
│ c_address, c_comment │
│ │
│ mode: │
│ FinalPartitioned │
└─────────────┬─────────────┘
┌─────────────┴─────────────┐
│ CoalesceBatchesExec │
│ -------------------- │
│ target_batch_size: │
│ 16384 │
└─────────────┬─────────────┘
┌─────────────┴─────────────┐
│ RepartitionExec │
│ -------------------- │
│ partition_count(in->out): │
│ 8 -> 8 │
│ │
│ partitioning_scheme: │
│ Hash([c_custkey@0, c_name │
│ @1, c_acctbal@2, c_phone │
│ @3, n_name@4, c_address@5 │
│ , c_comment@6], 8) │
└─────────────┬─────────────┘
┌─────────────┴─────────────┐
│ AggregateExec │
│ -------------------- │
│ aggr: │
│ sum(lineitem │
│ .l_extendedp │
│ rice * Int64(1) - lineitem│
│ .l_discount) │
│ │
│ group_by: │
│ c_custkey, c_name, │
│ c_acctbal, │
│ c_phone, n_name, │
│ c_address, c_comment │
│ │
│ mode: Partial │
└─────────────┬─────────────┘
┌─────────────┴─────────────┐
│ ProjectionExec │
│ -------------------- │
│ c_acctbal: c_acctbal │
│ c_address: c_address │
│ c_comment: c_comment │
│ c_custkey: c_custkey │
│ c_name: c_name │
│ c_phone: c_phone │
│ │
│ l_discount: │
│ l_discount │
│ │
│ l_extendedprice: │
│ l_extendedprice │
│ │
│ n_name: n_name │
└─────────────┬─────────────┘
┌─────────────┴─────────────┐
│ CoalesceBatchesExec │
│ -------------------- │
│ target_batch_size: │
│ 16384 │
└─────────────┬─────────────┘
┌─────────────┴─────────────┐
│ HashJoinExec │
│ -------------------- │
│ on: ├──────────────┐
│(n_nationkey = c_nationkey)│ │
└─────────────┬─────────────┘ │
┌─────────────┴─────────────┐┌─────────────┴─────────────┐
│ LiquidCacheClientExec ││ CoalesceBatchesExec │
│ -------------------- ││ -------------------- │
│ server: ││ target_batch_size: │
│ http://localhost:50051, ││ 16384 │
│ object_stores=[] ││ │
└─────────────┬─────────────┘└─────────────┬─────────────┘
┌─────────────┴─────────────┐┌─────────────┴─────────────┐
│ DataSourceExec ││ HashJoinExec │
│ -------------------- ││ -------------------- │
│ files: 1 ││ on: ├───────────────────────────────────────────┐
│ format: parquet ││ (o_orderkey = l_orderkey) │ │
└───────────────────────────┘└─────────────┬─────────────┘ │
┌─────────────┴─────────────┐ ┌─────────────┴─────────────┐
│ ProjectionExec │ │ LiquidCacheClientExec │
│ -------------------- │ │ -------------------- │
│ c_acctbal: c_acctbal │ │ server: │
│ c_address: c_address │ │ http://localhost:50051, │
│ c_comment: c_comment │ │ object_stores=[] │
│ c_custkey: c_custkey │ │ │
│ c_name: c_name │ │ │
│ │ │ │
│ c_nationkey: │ │ │
│ c_nationkey │ │ │
│ │ │ │
│ c_phone: c_phone │ │ │
│ │ │ │
│ o_orderkey: │ │ │
│ o_orderkey │ │ │
└─────────────┬─────────────┘ └─────────────┬─────────────┘
┌─────────────┴─────────────┐ ┌─────────────┴─────────────┐
│ CoalesceBatchesExec │ │ RepartitionExec │
│ -------------------- │ │ -------------------- │
│ target_batch_size: │ │ partition_count(in->out): │
│ 16384 │ │ 1 -> 8 │
│ │ │ │
│ │ │ partitioning_scheme: │
│ │ │ RoundRobinBatch(8) │
└─────────────┬─────────────┘ └─────────────┬─────────────┘
┌─────────────┴─────────────┐ ┌─────────────┴─────────────┐
│ HashJoinExec │ │ DataSourceExec │
│ -------------------- │ │ -------------------- │
│ on: │ │ files: 1 │
│ (o_custkey = c_custkey) ├──────────────┐ │ format: parquet │
│ │ │ │ │
│ │ │ │ predicate: │
│ │ │ │ l_returnflag = R AND true │
└─────────────┬─────────────┘ │ └───────────────────────────┘
┌─────────────┴─────────────┐┌─────────────┴─────────────┐
│ LiquidCacheClientExec ││ LiquidCacheClientExec │
│ -------------------- ││ -------------------- │
│ server: ││ server: │
│ http://localhost:50051, ││ http://localhost:50051, │
│ object_stores=[] ││ object_stores=[] │
└─────────────┬─────────────┘└─────────────┬─────────────┘
┌─────────────┴─────────────┐┌─────────────┴─────────────┐
│ DataSourceExec ││ DataSourceExec │
│ -------------------- ││ -------------------- │
│ files: 1 ││ files: 1 │
│ format: parquet ││ format: parquet │
│ ││ │
│ predicate: ││ predicate: │
│ o_orderdate >= 1993-10-01 ││ true AND true │
│ AND o_orderdate < 1994 ││ │
│ -01-01 ││ │
└───────────────────────────┘└───────────────────────────┘