Uh oh!
There was an error while loading. Please reload this page.
[fix](nereids)support group_concat with distinct and order by - #38080
Merged
Conversation
doris-robot
commented
Jul 18, 2024
Thank you for your contribution to Apache Doris. Since 2024-03-18, the Document has been moved to doris-website. |
starocean999
commented
Jul 30, 2024
ContributorAuthor
run buildall |
doris-robot
commented
Jul 30, 2024
TPC-H: Total hot run time: 41914 ms |
doris-robot
commented
Jul 30, 2024
TPC-DS: Total hot run time: 168737 ms |
doris-robot
commented
Jul 30, 2024
ClickBench: Total hot run time: 29.81 s |
starocean999
commented
Jul 31, 2024
ContributorAuthor
run buildall |
doris-robot
commented
Jul 31, 2024
TPC-H: Total hot run time: 41761 ms |
starocean999
commented
Jul 31, 2024
ContributorAuthor
run buildall |
doris-robot
commented
Jul 31, 2024
TPC-H: Total hot run time: 41436 ms |
doris-robot
commented
Jul 31, 2024
TPC-DS: Total hot run time: 170687 ms |
doris-robot
commented
Jul 31, 2024
ClickBench: Total hot run time: 29.86 s |
starocean999
commented
Aug 2, 2024
ContributorAuthor
run buildall |
doris-robot
commented
Aug 2, 2024
TPC-H: Total hot run time: 41780 ms |
doris-robot
commented
Aug 2, 2024
TPC-DS: Total hot run time: 168853 ms |
doris-robot
commented
Aug 2, 2024
ClickBench: Total hot run time: 29.62 s |
starocean999
commented
Aug 2, 2024
ContributorAuthor
run buildall |
Contributor
clang-tidy review says "All clean, LGTM! 👍" |
doris-robot
commented
Aug 2, 2024
TPC-H: Total hot run time: 41720 ms |
doris-robot
commented
Aug 2, 2024
TPC-DS: Total hot run time: 168254 ms |
doris-robot
commented
Aug 2, 2024
ClickBench: Total hot run time: 29.97 s |
starocean999
marked this pull request as ready for review
August 5, 2024 02:21
924060929
approved these changes
Aug 5, 2024
Contributor
PR approved by at least one committer and no changes requested. |
Contributor
PR approved by anyone and no changes requested. |
BiteTheDDDDt
approved these changes
Aug 5, 2024
yiguolei pushed a commit
that referenced
this pull request
Aug 5, 2024
## Proposed changes pick from master #38080 <!--Describe your changes.-->
dataroaring pushed a commit
that referenced
this pull request
Aug 11, 2024
This pr support group_concat with distinct and order by. So we can support sql like bellow: ``` select group_concat(distinct x order by y) from t; select multi_distinct_group_concat(x order by y) from t; ```
dataroaring pushed a commit
that referenced
this pull request
Aug 16, 2024
This pr support group_concat with distinct and order by. So we can support sql like bellow: ``` select group_concat(distinct x order by y) from t; select multi_distinct_group_concat(x order by y) from t; ```
Closed
HappenLee pushed a commit
to HappenLee/incubator-doris
that referenced
this pull request
Apr 24, 2026
…#38080) This pr support group_concat with distinct and order by. So we can support sql like bellow: ``` select group_concat(distinct x order by y) from t; select multi_distinct_group_concat(x order by y) from t; ```
This was referenced May 23, 2026
morningman pushed a commit
to apache/doris-website
that referenced
this pull request
May 23, 2026
… docs (#3744) ## Summary The `GROUP_CONCAT` page syntax already advertises `[ORDER BY {<col_name>|<expr>} [ASC|DESC]]`, but the Examples section on 2.1/3.x only showed the basic and `DISTINCT` forms, so a reader couldn't see how `ORDER BY` actually attaches *inside* `GROUP_CONCAT`. The current/4.x pages already carry two `ORDER BY` examples — backport them to 2.1/3.x (EN + zh), with a version note on the DISTINCT + ORDER BY combination so users on older patch releases don't hit a parser error. Added examples (matching the form already shipped in current/4.x): ```sql select GROUP_CONCAT(value ORDER BY value DESC) from test; -- => "c, c, b, a" -- DISTINCT + ORDER BY is supported since 2.1.6 / 3.0.2 — see note above the example select GROUP_CONCAT(DISTINCT value ORDER BY value DESC) from test; -- => "c, b, a" ``` ### Version verification (from Doris source) - Basic `GROUP_CONCAT(... ORDER BY ...)`: introduced in Nereids by apache/doris#15671 + apache/doris#16081 (Jan 2023, before 2.0 GA) → works on 2.1.x and 3.x. - `GROUP_CONCAT(DISTINCT ... ORDER BY ...)`: apache/doris#38080, labels `dev/2.1.6-merged, dev/3.0.2-merged` → only valid on 2.1.6+ and 3.0.2+. The page therefore carries an inline `:::note` flagging this minimum-version requirement (2.1.6 in the 2.1 docs, 3.0.2 in the 3.x docs). ## Test plan - [x] All 4 backported files now have 6 `GROUP_CONCAT(...)` example calls, matching current/4.x. - [x] DISTINCT + ORDER BY example is accompanied by a minimum-version note (2.1.6 for the 2.1 docs, 3.0.2 for the 3.x docs). - [x] Dead-link check passes. - [ ] CI build. Closes#3487 Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This file contains hidden or 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
Sign up for freeto join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Proposed changes
This pr support group_concat with distinct and order by. So we can support sql like bellow: