You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When we have a query that includes group_concat with an order by clause inside, we get a 2013 error. It runs fine in MySQL directly.
Reproduction Steps
Create table:
createtableuser_test(user_id bigint, name varchar(128), primary key(user_id));
Run query:
MYSQL
select group_concat(user_id order by name) from user_test;
+-------------------------------------+
| group_concat(user_id order by name) |
+-------------------------------------+
| NULL |
+-------------------------------------+
1 row in set (0.00 sec)
VITESS
select group_concat(user_id order by name) from user_test;
ERROR 2013 (HY000): Lost connection to MySQL server during query
Binary Version
vtgate --version
Version: 14.0.0-SNAPSHOT (Git revision 0fb472e99d branch 'main') built on Thu Mar 17 21:15:49 UTC 2022 by vitess@buildkitsandbox using go1.17.6 linux/amd64
joeyrivera
changed the title
Bug Report: select group_concat with order by causes failure
Bug Report: select group_concat with order by clause failure
Mar 21, 2022
joeyrivera
changed the title
Bug Report: select group_concat with order by clause failure
Bug Report: select group_concat with order by causes failure
Mar 21, 2022
Overview of the Issue
When we have a query that includes
group_concat
with anorder by
clause inside, we get a 2013 error. It runs fine in MySQL directly.Reproduction Steps
Create table:
Run query:
MYSQL
VITESS
Binary Version
vtgate --version Version: 14.0.0-SNAPSHOT (Git revision 0fb472e99d branch 'main') built on Thu Mar 17 21:15:49 UTC 2022 by vitess@buildkitsandbox using go1.17.6 linux/amd64
Operating System and Environment details
Log Fragments
No response
The text was updated successfully, but these errors were encountered: