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
dropdatabase if exists mysql_compat_model8_group_concat;
createdatabasemysql_compat_model8_group_concat;
use mysql_compat_model8_group_concat;
createtablet(id intprimary key, s varchar(16));
insert into t values (1,'aa'),(2,'bb'),(3,'cc');
set session group_concat_max_len =5;
select group_concat(s order by s separator '') from t;
Expected Behavior
MySQL honors group_concat_max_len and truncates the result to 5 characters with a warning:
aabbc
Actual Behavior
MatrixOne returns the full concatenated string:
aabbcc
Notes
I searched existing issues for group_concat_max_len and GROUP_CONCAT max_len before filing and did not find a duplicate.
Activity
jiangxinmeng1 commentedon Jul 28, 2026
fixed by #26199
Ariznawlll commentedon Jul 28, 2026
已在最新
main分支完成验证,当前问题已修复。测试版本:
mainc8e443bf8610b2af4333ad943ba2075485b16cf88c9bb6689(fix: honor group_concat_max_len)测试步骤:
aa、bb、cc和一条NULL。group_concat_max_len=5,执行带固定排序和空分隔符的GROUP_CONCAT。GROUP_CONCAT max_lenUT 3 轮。关键结果:
结果符合预期,未再出现忽略
group_concat_max_len、返回完整字符串的问题。已加入 motr 黑盒回归:
5ad59fd1d9786af1fb1c947046d1e6595465bebd14_issue_regression.issue_25370_group_concat_max_lenmotr 在最新 main 上串行 3 轮和并行 3 轮均通过。