Skip to content

Commit

Permalink
executor: support GROUP_CONCAT(ORDER BY) (#16591) (#16988)
Browse files Browse the repository at this point in the history
  • Loading branch information
sre-bot authored May 8, 2020
1 parent 19e5905 commit 8885168
Show file tree
Hide file tree
Showing 38 changed files with 1,222 additions and 95 deletions.
4 changes: 2 additions & 2 deletions cmd/explaintest/r/explain.result
Original file line number Diff line number Diff line change
Expand Up @@ -26,13 +26,13 @@ drop table if exists t;
create table t(id int primary key, a int, b int);
explain select group_concat(a) from t group by id;
id count task operator info
StreamAgg_8 8000.00 root group by:col_1, funcs:group_concat(col_0, ",")
StreamAgg_8 8000.00 root group by:col_1, funcs:group_concat(col_0 separator ",")
└─Projection_18 10000.00 root cast(test.t.a), test.t.id
└─TableReader_15 10000.00 root data:TableScan_14
└─TableScan_14 10000.00 cop table:t, range:[-inf,+inf], keep order:true, stats:pseudo
explain select group_concat(a, b) from t group by id;
id count task operator info
StreamAgg_8 8000.00 root group by:col_2, funcs:group_concat(col_0, col_1, ",")
StreamAgg_8 8000.00 root group by:col_2, funcs:group_concat(col_0, col_1 separator ",")
└─Projection_18 10000.00 root cast(test.t.a), cast(test.t.b), test.t.id
└─TableReader_15 10000.00 root data:TableScan_14
└─TableScan_14 10000.00 cop table:t, range:[-inf,+inf], keep order:true, stats:pseudo
Expand Down
Loading

0 comments on commit 8885168

Please sign in to comment.