[fix](nereids) fix sum0 cannot pass multi distinct check#51234
Merged
morrySnow merged 4 commits intoapache:masterfrom Jun 3, 2025
Merged
[fix](nereids) fix sum0 cannot pass multi distinct check#51234morrySnow merged 4 commits intoapache:masterfrom
morrySnow merged 4 commits intoapache:masterfrom
Conversation
Contributor
|
Thank you for your contribution to Apache Doris. Please clearly describe your PR:
|
Contributor
Author
|
run buildall |
TPC-H: Total hot run time: 34142 ms |
TPC-DS: Total hot run time: 192397 ms |
ClickBench: Total hot run time: 29.14 s |
Contributor
Author
|
run buildall |
TPC-H: Total hot run time: 33931 ms |
TPC-DS: Total hot run time: 193499 ms |
ClickBench: Total hot run time: 29.14 s |
morrySnow
reviewed
May 27, 2025
| (4,5,6),(4,5,7),(4,5,8), | ||
| (5,0,0),(5,0,0),(5,0,0); | ||
| """ | ||
| sql "select sum0(distinct b),sum(distinct c) from test_sum0_multi_distinct_with_group_by group by a" |
Contributor
There was a problem hiding this comment.
test all null case, could sum0(distinct b) get right result?
0c53bcd to
9cb7dd0
Compare
Contributor
Author
|
run buildall |
TPC-H: Total hot run time: 33772 ms |
TPC-DS: Total hot run time: 186223 ms |
ClickBench: Total hot run time: 28.98 s |
Contributor
Author
|
run feut |
1 similar comment
Contributor
Author
|
run feut |
924060929
approved these changes
Jun 3, 2025
Contributor
|
PR approved by at least one committer and no changes requested. |
Contributor
|
PR approved by anyone and no changes requested. |
morrySnow
approved these changes
Jun 3, 2025
github-actions bot
pushed a commit
that referenced
this pull request
Jun 3, 2025
### What problem does this PR solve? Related PR: #32541 Problem Summary: Before this pr, execute below sql will report error: sum0(DISTINCT c#2) can't support multi distinct. This pr change the check, and the sql can be executed. sql is: select sum0(distinct b),sum(distinct c) from test_sum0_multi_distinct_with_group_by group by a
koarz
pushed a commit
to koarz/doris
that referenced
this pull request
Jun 4, 2025
### What problem does this PR solve? Related PR: apache#32541 Problem Summary: Before this pr, execute below sql will report error: sum0(DISTINCT c#2) can't support multi distinct. This pr change the check, and the sql can be executed. sql is: select sum0(distinct b),sum(distinct c) from test_sum0_multi_distinct_with_group_by group by a
github-actions bot
pushed a commit
that referenced
this pull request
Jun 20, 2025
### What problem does this PR solve? Related PR: #32541 Problem Summary: Before this pr, execute below sql will report error: sum0(DISTINCT c#2) can't support multi distinct. This pr change the check, and the sql can be executed. sql is: select sum0(distinct b),sum(distinct c) from test_sum0_multi_distinct_with_group_by group by a
morrySnow
pushed a commit
that referenced
this pull request
Jun 23, 2025
feiniaofeiafei
added a commit
to feiniaofeiafei/doris
that referenced
this pull request
Jul 8, 2025
### What problem does this PR solve? Related PR: apache#32541 Problem Summary: Before this pr, execute below sql will report error: sum0(DISTINCT c#2) can't support multi distinct. This pr change the check, and the sql can be executed. sql is: select sum0(distinct b),sum(distinct c) from test_sum0_multi_distinct_with_group_by group by a
feiniaofeiafei
added a commit
to feiniaofeiafei/doris
that referenced
this pull request
Jul 8, 2025
feiniaofeiafei
added a commit
to feiniaofeiafei/doris
that referenced
this pull request
Jul 9, 2025
### What problem does this PR solve? Related PR: apache#32541 Problem Summary: Before this pr, execute below sql will report error: sum0(DISTINCT c#2) can't support multi distinct. This pr change the check, and the sql can be executed. sql is: select sum0(distinct b),sum(distinct c) from test_sum0_multi_distinct_with_group_by group by a
feiniaofeiafei
added a commit
to feiniaofeiafei/doris
that referenced
this pull request
Jul 9, 2025
morrySnow
pushed a commit
that referenced
this pull request
Jul 9, 2025
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 free
to 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.
What problem does this PR solve?
Issue Number: close #xxx
Related PR: #32541
Problem Summary:
Before this pr,
sql like this will report error: sum0(DISTINCT c#2) can't support multi distinct.
This pr change the check, and the sql can be executed.
Release note
None
Check List (For Author)
Test
Behavior changed:
Does this need documentation?
Check List (For Reviewer who merge this PR)