@@ -166,25 +166,42 @@ explain SELECT string_col, SUM(bigint_col) FROM table1 GROUP BY string_col;
166
166
physical_plan
167
167
01)┌───────────────────────────┐
168
168
02)│ AggregateExec │
169
- 03)└─────────────┬─────────────┘
170
- 04)┌─────────────┴─────────────┐
171
- 05)│ CoalesceBatchesExec │
172
- 06)└─────────────┬─────────────┘
173
- 07)┌─────────────┴─────────────┐
174
- 08)│ RepartitionExec │
175
- 09)└─────────────┬─────────────┘
176
- 10)┌─────────────┴─────────────┐
177
- 11)│ AggregateExec │
169
+ 03)│ -------------------- │
170
+ 04)│ aggr: │
171
+ 05)│ sum(table1.bigint_col) │
172
+ 06)│ │
173
+ 07)│ group_by: │
174
+ 08)│ string_col@0 as string_col │
175
+ 09)│ │
176
+ 10)│ mode: │
177
+ 11)│ FinalPartitioned │
178
178
12)└─────────────┬─────────────┘
179
179
13)┌─────────────┴─────────────┐
180
- 14)│ RepartitionExec │
180
+ 14)│ CoalesceBatchesExec │
181
181
15)└─────────────┬─────────────┘
182
182
16)┌─────────────┴─────────────┐
183
- 17)│ DataSourceExec │
184
- 18)│ -------------------- │
185
- 19)│ files: 1 │
186
- 20)│ format: csv │
187
- 21)└───────────────────────────┘
183
+ 17)│ RepartitionExec │
184
+ 18)└─────────────┬─────────────┘
185
+ 19)┌─────────────┴─────────────┐
186
+ 20)│ AggregateExec │
187
+ 21)│ -------------------- │
188
+ 22)│ aggr: │
189
+ 23)│ sum(table1.bigint_col) │
190
+ 24)│ │
191
+ 25)│ group_by: │
192
+ 26)│ string_col@0 as string_col│
193
+ 27)│ │
194
+ 28)│ mode: Partial │
195
+ 29)└─────────────┬─────────────┘
196
+ 30)┌─────────────┴─────────────┐
197
+ 31)│ RepartitionExec │
198
+ 32)└─────────────┬─────────────┘
199
+ 33)┌─────────────┴─────────────┐
200
+ 34)│ DataSourceExec │
201
+ 35)│ -------------------- │
202
+ 36)│ files: 1 │
203
+ 37)│ format: csv │
204
+ 38)└───────────────────────────┘
188
205
189
206
# Limit
190
207
query TT
@@ -1076,22 +1093,28 @@ physical_plan
1076
1093
11)└───────────────────────────┘└─────────────┬─────────────┘
1077
1094
12)-----------------------------┌─────────────┴─────────────┐
1078
1095
13)-----------------------------│ AggregateExec │
1079
- 14)-----------------------------└─────────────┬─────────────┘
1080
- 15)-----------------------------┌─────────────┴─────────────┐
1081
- 16)-----------------------------│ CoalescePartitionsExec │
1096
+ 14)-----------------------------│ -------------------- │
1097
+ 15)-----------------------------│ aggr: count(Int64(1)) │
1098
+ 16)-----------------------------│ mode: Final │
1082
1099
17)-----------------------------└─────────────┬─────────────┘
1083
1100
18)-----------------------------┌─────────────┴─────────────┐
1084
- 19)-----------------------------│ AggregateExec │
1101
+ 19)-----------------------------│ CoalescePartitionsExec │
1085
1102
20)-----------------------------└─────────────┬─────────────┘
1086
1103
21)-----------------------------┌─────────────┴─────────────┐
1087
- 22)-----------------------------│ RepartitionExec │
1088
- 23)-----------------------------└─────────────┬─────────────┘
1089
- 24)-----------------------------┌─────────────┴─────────────┐
1090
- 25)-----------------------------│ DataSourceExec │
1091
- 26)-----------------------------│ -------------------- │
1092
- 27)-----------------------------│ files: 1 │
1093
- 28)-----------------------------│ format: parquet │
1094
- 29)-----------------------------└───────────────────────────┘
1104
+ 22)-----------------------------│ AggregateExec │
1105
+ 23)-----------------------------│ -------------------- │
1106
+ 24)-----------------------------│ aggr: count(Int64(1)) │
1107
+ 25)-----------------------------│ mode: Partial │
1108
+ 26)-----------------------------└─────────────┬─────────────┘
1109
+ 27)-----------------------------┌─────────────┴─────────────┐
1110
+ 28)-----------------------------│ RepartitionExec │
1111
+ 29)-----------------------------└─────────────┬─────────────┘
1112
+ 30)-----------------------------┌─────────────┴─────────────┐
1113
+ 31)-----------------------------│ DataSourceExec │
1114
+ 32)-----------------------------│ -------------------- │
1115
+ 33)-----------------------------│ files: 1 │
1116
+ 34)-----------------------------│ format: parquet │
1117
+ 35)-----------------------------└───────────────────────────┘
1095
1118
1096
1119
# Query with cross join.
1097
1120
query TT
0 commit comments