Apache Doris 中文技术论坛
Questions Tags Users Badges

group_concat 什么时候可以支持Distinct 和 order by 一起用?

Asked Jun 18, 2024 Modified Jun 19, 2024
Viewed 127
query

ERROR 1105 (HY000): errCode = 2, detailMessage = group_concat don't support using distinct with order by together: group_concat(DISTINCT X.xxxx ORDER BY X.xxxx ASC, ',' ASC)

edited Jun 19, 2024
sg300003
asked Jun 18, 2024
1 Answers

如果需要同时实现去重和排序的功能,当前可能需要考虑其它替代方案或使用多个查询步骤来完成。

edited Jan 1, 1970
张彬华7698
answered Jun 20, 2024
Related Questions
Doris 2.0.15,3FE、6BE(3BE mix角色 3BE computation角色)3个mix角色的BE节点CPU使用率100%
1 answers
在select 子语句中使用标量子查询执行查询正常,创建为视图执行报错
get_json_string/json_extract 在不同的Doris版本中结果不一致
1 answers
Doris4.0.2版本,集群部署模式3台主机,不稳定,经常报错。insert报failed to write enough replicas 0/1 for tablet,select查询也报错
1 answers
倒排索引match返回结果不正确
1 answers
Doris无法查询information_schema.tables表信息
1 answers

Terms of service Privacy policy

Powered by Answer - the open-source software that powers Q&A communities.
Made with love © 2026 Apache Doris 中文技术论坛.