Uh oh!
There was an error while loading. Please reload this page.
[Fix](nereids) fix rule merge_aggregate when has project - #33892
Merged
Conversation
doris-robot
commented
Apr 19, 2024
Thank you for your contribution to Apache Doris. Since 2024-03-18, the Document has been moved to doris-website. |
feiniaofeiafei
commented
Apr 19, 2024
CollaboratorAuthor
run buildall |
doris-robot
commented
Apr 19, 2024
TPC-H: Total hot run time: 38418 ms |
starocean999
marked this pull request as draft
April 19, 2024 09:15
doris-robot
commented
Apr 19, 2024
TPC-DS: Total hot run time: 183979 ms |
doris-robot
commented
Apr 19, 2024
ClickBench: Total hot run time: 30.23 s |
doris-robot
commented
Apr 19, 2024
Load test result on machine: 'aliyun_ecs.c7a.8xlarge_32C64G' |
feiniaofeiafei
commented
Apr 19, 2024
CollaboratorAuthor
run buildall |
doris-robot
commented
Apr 19, 2024
TPC-H: Total hot run time: 38192 ms |
doris-robot
commented
Apr 19, 2024
TPC-DS: Total hot run time: 185253 ms |
doris-robot
commented
Apr 19, 2024
ClickBench: Total hot run time: 31.19 s |
doris-robot
commented
Apr 19, 2024
Load test result on machine: 'aliyun_ecs.c7a.8xlarge_32C64G' |
feiniaofeiafei
commented
Apr 22, 2024
CollaboratorAuthor
run buildall |
doris-robot
commented
Apr 22, 2024
TPC-H: Total hot run time: 39290 ms |
doris-robot
commented
Apr 22, 2024
TPC-DS: Total hot run time: 184504 ms |
doris-robot
commented
Apr 22, 2024
ClickBench: Total hot run time: 30.67 s |
feiniaofeiafeiforce-pushed
the
merge_agg_bug
branch
from
April 22, 2024 06:05
6bb4604 to
f5ea21eComparefeiniaofeiafei
commented
Apr 22, 2024
CollaboratorAuthor
run buildall |
doris-robot
commented
Apr 22, 2024
TPC-H: Total hot run time: 38296 ms |
doris-robot
commented
Apr 22, 2024
TPC-DS: Total hot run time: 185222 ms |
doris-robot
commented
Apr 22, 2024
ClickBench: Total hot run time: 29.96 s |
feiniaofeiafeiforce-pushed
the
merge_agg_bug
branch
from
April 23, 2024 02:21
f5ea21e to
f95e424Comparefeiniaofeiafei
commented
Apr 23, 2024
CollaboratorAuthor
run buildall |
feiniaofeiafei
marked this pull request as ready for review
April 23, 2024 06:09
| topDown(new EliminateGroupBy(), | ||
| new MergeAggregate()) | ||
| new MergeAggregate(), | ||
| new AdjustAggregateNullableForEmptySet()) |
Contributor
There was a problem hiding this comment.
add comment here to explain why need execute AdjustAggregateNullableForEmptySet after MergeAggregate
feiniaofeiafei
commented
Apr 24, 2024
CollaboratorAuthor
run buildall |
feiniaofeiafei
commented
Apr 24, 2024
CollaboratorAuthor
run p0 |
morrySnow
approved these changes
Apr 25, 2024
Contributor
PR approved by at least one committer and no changes requested. |
Contributor
PR approved by anyone and no changes requested. |
starocean999
approved these changes
Apr 26, 2024
yiguolei pushed a commit
that referenced
this pull request
Apr 26, 2024
dataroaring pushed a commit
that referenced
this pull request
Apr 27, 2024
HappenLee pushed a commit
to HappenLee/incubator-doris
that referenced
this pull request
Apr 24, 2026
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.
This pr fix 2 problem of merge_aggregate:
1.The map innerAggExprIdToAggFunc key is the inner agg output agg func exprid, value is the Agg func. When a LogicalProject is between 2 agg, the outeragg func child refer to the project output, I forget to do the rewrite to make the outeragg func child refer to the inneragg output. This can lead to an incorrect judgment when determining whether the outer agg func child exists in the inner agg func outputs. This pr fix this bug.
2.When merging 2 sum/min/max, the outer agg group by key is empty, and the inner agg group by key is not empty, the nullable attribute need to be adjusted. Because the sum without group by key is always nullable, the sum with group by key nullable attribute determined by the sum child nullable attribute. This pr fix this bug.