-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Group Concat function support for separator (#16237)
Signed-off-by: Manan Gupta <[email protected]>
- Loading branch information
1 parent
6c7fed9
commit 465ffcf
Showing
11 changed files
with
150 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -56,6 +56,8 @@ __debug_bin | |
/php/composer.phar | ||
/php/vendor | ||
|
||
report*.xml | ||
|
||
# vitess.io preview site | ||
/preview-vitess.io/ | ||
|
||
|
50 changes: 50 additions & 0 deletions
50
go/test/endtoend/vtgate/vitess_tester/aggregation/aggregation.test
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
CREATE TABLE `t1` | ||
( | ||
`id` int unsigned NOT NULL AUTO_INCREMENT, | ||
`name` varchar(191) NOT NULL, | ||
PRIMARY KEY (`id`) | ||
) ENGINE InnoDB, | ||
CHARSET utf8mb4, | ||
COLLATE utf8mb4_unicode_ci; | ||
|
||
CREATE TABLE `t2` | ||
( | ||
`id` bigint unsigned NOT NULL AUTO_INCREMENT, | ||
`t1_id` int unsigned NOT NULL, | ||
PRIMARY KEY (`id`) | ||
) ENGINE InnoDB, | ||
CHARSET utf8mb4, | ||
COLLATE utf8mb4_unicode_ci; | ||
|
||
CREATE TABLE `t3` | ||
( | ||
`id` bigint unsigned NOT NULL AUTO_INCREMENT, | ||
`name` varchar(191) NOT NULL, | ||
PRIMARY KEY (`id`) | ||
) ENGINE InnoDB, | ||
CHARSET utf8mb4, | ||
COLLATE utf8mb4_unicode_ci; | ||
|
||
insert into t1 (id, name) | ||
values (1, 'A'), | ||
(2, 'B'), | ||
(3, 'C'), | ||
(4, 'D'); | ||
|
||
insert into t2 (id, t1_id) | ||
values (1, 1), | ||
(2, 2), | ||
(3, 3); | ||
|
||
insert into t3 (id, name) | ||
values (1, 'A'), | ||
(2, 'B'); | ||
|
||
-- wait_authoritative t1 | ||
-- wait_authoritative t2 | ||
-- wait_authoritative t3 | ||
select group_concat(t3.name SEPARATOR ', ') as "Group Name" | ||
from t1 | ||
join t2 on t1.id = t2.t1_id | ||
left join t3 on t1.id = t3.id | ||
group by t1.id; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters