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
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
---
source: src/client/src/tests/mod.rs
expression: displayable.tree_render().to_string()
---
┌───────────────────────────┐
│ SortPreservingMergeExec │
│ -------------------- │
│ nation ASC NULLS LAST, │
│ o_year DESC │
└─────────────┬─────────────┘
┌─────────────┴─────────────┐
│ SortExec │
│ -------------------- │
│ nation@0 ASC NULLS LAST, │
│ o_year@1 DESC │
└─────────────┬─────────────┘
┌─────────────┴─────────────┐
│ ProjectionExec │
│ -------------------- │
│ nation: nation │
│ o_year: o_year │
│ │
│ sum_profit: │
│ sum(profit.amount) │
└─────────────┬─────────────┘
┌─────────────┴─────────────┐
│ AggregateExec │
│ -------------------- │
│ aggr: │
│ sum(profit.amount) │
│ │
│ group_by: │
│ nation, o_year │
│ │
│ mode: │
│ FinalPartitioned │
└─────────────┬─────────────┘
┌─────────────┴─────────────┐
│ CoalesceBatchesExec │
│ -------------------- │
│ target_batch_size: │
│ 16384 │
└─────────────┬─────────────┘
┌─────────────┴─────────────┐
│ RepartitionExec │
│ -------------------- │
│ partition_count(in->out): │
│ 8 -> 8 │
│ │
│ partitioning_scheme: │
│ Hash([nation@0, o_year@1],│
│ 8) │
└─────────────┬─────────────┘
┌─────────────┴─────────────┐
│ AggregateExec │
│ -------------------- │
│ aggr: │
│ sum(profit.amount) │
│ │
│ group_by: │
│ nation, o_year │
│ │
│ mode: Partial │
└─────────────┬─────────────┘
┌─────────────┴─────────────┐
│ ProjectionExec │
│ -------------------- │
│ amount: │
│ l_extendedprice * (Some(1)│
│ ,20,0 - l_discount) - │
│ ps_supplycost * │
│ l_quantity │
│ │
│ nation: n_name │
│ │
│ o_year: │
│ date_part(YEAR, │
│ o_orderdate) │
└─────────────┬─────────────┘
┌─────────────┴─────────────┐
│ CoalesceBatchesExec │
│ -------------------- │
│ target_batch_size: │
│ 16384 │
└─────────────┬─────────────┘
┌─────────────┴─────────────┐
│ HashJoinExec │
│ -------------------- │
│ on: ├──────────────┐
│(n_nationkey = s_nationkey)│ │
└─────────────┬─────────────┘ │
┌─────────────┴─────────────┐┌─────────────┴─────────────┐
│ LiquidCacheClientExec ││ ProjectionExec │
│ -------------------- ││ -------------------- │
│ server: ││ l_discount: │
│ http://localhost:50051, ││ l_discount │
│ object_stores=[] ││ │
│ ││ l_extendedprice: │
│ ││ l_extendedprice │
│ ││ │
│ ││ l_quantity: │
│ ││ l_quantity │
│ ││ │
│ ││ o_orderdate: │
│ ││ o_orderdate │
│ ││ │
│ ││ ps_supplycost: │
│ ││ ps_supplycost │
│ ││ │
│ ││ s_nationkey: │
│ ││ s_nationkey │
└─────────────┬─────────────┘└─────────────┬─────────────┘
┌─────────────┴─────────────┐┌─────────────┴─────────────┐
│ DataSourceExec ││ CoalesceBatchesExec │
│ -------------------- ││ -------------------- │
│ files: 1 ││ target_batch_size: │
│ format: parquet ││ 16384 │
└───────────────────────────┘└─────────────┬─────────────┘
┌─────────────┴─────────────┐
│ HashJoinExec │
│ -------------------- │
│ on: ├──────────────┐
│ (o_orderkey = l_orderkey) │ │
└─────────────┬─────────────┘ │
┌─────────────┴─────────────┐┌─────────────┴─────────────┐
│ LiquidCacheClientExec ││ RepartitionExec │
│ -------------------- ││ -------------------- │
│ server: ││ partition_count(in->out): │
│ http://localhost:50051, ││ 1 -> 8 │
│ object_stores=[] ││ │
│ ││ partitioning_scheme: │
│ ││ RoundRobinBatch(8) │
└─────────────┬─────────────┘└─────────────┬─────────────┘
┌─────────────┴─────────────┐┌─────────────┴─────────────┐
│ DataSourceExec ││ CoalesceBatchesExec │
│ -------------------- ││ -------------------- │
│ files: 1 ││ target_batch_size: │
│ format: parquet ││ 16384 │
└───────────────────────────┘└─────────────┬─────────────┘
┌─────────────┴─────────────┐
│ HashJoinExec │
│ -------------------- │
│ on: ├────────────────────────────────────────────────────────────────────────┐
│ (l_suppkey = ps_suppkey), │ │
│ (l_partkey = ps_partkey) │ │
└─────────────┬─────────────┘ │
┌─────────────┴─────────────┐ ┌─────────────┴─────────────┐
│ CoalescePartitionsExec │ │ LiquidCacheClientExec │
│ │ │ -------------------- │
│ │ │ server: │
│ │ │ http://localhost:50051, │
│ │ │ object_stores=[] │
└─────────────┬─────────────┘ └─────────────┬─────────────┘
┌─────────────┴─────────────┐ ┌─────────────┴─────────────┐
│ ProjectionExec │ │ DataSourceExec │
│ -------------------- │ │ -------------------- │
│ l_discount: │ │ files: 1 │
│ l_discount │ │ format: parquet │
│ │ │ predicate: true │
│ l_extendedprice: │ │ │
│ l_extendedprice │ │ │
│ │ │ │
│ l_orderkey: │ │ │
│ l_orderkey │ │ │
│ │ │ │
│ l_partkey: l_partkey │ │ │
│ │ │ │
│ l_quantity: │ │ │
│ l_quantity │ │ │
│ │ │ │
│ l_suppkey: l_suppkey │ │ │
│ │ │ │
│ s_nationkey: │ │ │
│ s_nationkey │ │ │
└─────────────┬─────────────┘ └───────────────────────────┘
┌─────────────┴─────────────┐
│ CoalesceBatchesExec │
│ -------------------- │
│ target_batch_size: │
│ 16384 │
└─────────────┬─────────────┘
┌─────────────┴─────────────┐
│ HashJoinExec │
│ -------------------- │
│ on: ├──────────────┐
│ (s_suppkey = l_suppkey) │ │
└─────────────┬─────────────┘ │
┌─────────────┴─────────────┐┌─────────────┴─────────────┐
│ LiquidCacheClientExec ││ RepartitionExec │
│ -------------------- ││ -------------------- │
│ server: ││ partition_count(in->out): │
│ http://localhost:50051, ││ 1 -> 8 │
│ object_stores=[] ││ │
│ ││ partitioning_scheme: │
│ ││ RoundRobinBatch(8) │
└─────────────┬─────────────┘└─────────────┬─────────────┘
┌─────────────┴─────────────┐┌─────────────┴─────────────┐
│ DataSourceExec ││ CoalesceBatchesExec │
│ -------------------- ││ -------------------- │
│ files: 1 ││ target_batch_size: │
│ format: parquet ││ 16384 │
└───────────────────────────┘└─────────────┬─────────────┘
┌─────────────┴─────────────┐
│ HashJoinExec │
│ -------------------- │
│ on: ├──────────────┐
│ (p_partkey = l_partkey) │ │
└─────────────┬─────────────┘ │
┌─────────────┴─────────────┐┌─────────────┴─────────────┐
│ 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: │
│ p_name LIKE %green% ││ true AND true │
└───────────────────────────┘└───────────────────────────┘