-
Notifications
You must be signed in to change notification settings - Fork 3.7k
[fix](nereids) fix bug of MergePercentileToArray #49773
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
Thank you for your contribution to Apache Doris. Please clearly describe your PR:
|
cd7b12d to
d5e3224
Compare
|
run buildall |
TPC-H: Total hot run time: 36262 ms |
TPC-DS: Total hot run time: 194319 ms |
ClickBench: Total hot run time: 31.2 s |
|
PR approved by at least one committer and no changes requested. |
|
PR approved by anyone and no changes requested. |
4509a6e to
d69abdd
Compare
|
run buildall |
TPC-H: Total hot run time: 33838 ms |
TPC-DS: Total hot run time: 193200 ms |
ClickBench: Total hot run time: 29.97 s |
|
|
||
| for (Map.Entry<DistinctAndExpr, List<AggregateFunction>> entry : funcMap.entrySet()) { | ||
| List<Literal> literals = new ArrayList<>(); | ||
| List<Expression> literals = new ArrayList<>(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
rename this variable to a proper name
| literals.add((Literal) literal.get(0)); | ||
| literals.add(aggFunc.child(1)); | ||
| } | ||
| ArrayLiteral arrayLiteral = new ArrayLiteral(literals); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
if all expression are literal, generate a array literal directly for better performance
d69abdd to
57d13e3
Compare
|
run buildall |
TPC-H: Total hot run time: 34313 ms |
TPC-DS: Total hot run time: 192685 ms |
ClickBench: Total hot run time: 29.06 s |
|
PR approved by at least one committer and no changes requested. |
### What problem does this PR solve? Related PR: #34313 Problem Summary: When the second argument of percentile is not literal, will report error :index out of range. This pr fix this bug, taking the second argument of percentile directly, and changing the arguments of percentilearray from array literal to array expression.
### What problem does this PR solve? Related PR: #34313 Problem Summary: When the second argument of percentile is not literal, will report error :index out of range. This pr fix this bug, taking the second argument of percentile directly, and changing the arguments of percentilearray from array literal to array expression.
### What problem does this PR solve? Related PR: apache#34313 Problem Summary: When the second argument of percentile is not literal, will report error :index out of range. This pr fix this bug, taking the second argument of percentile directly, and changing the arguments of percentilearray from array literal to array expression.
What problem does this PR solve?
Issue Number: close #xxx
Related PR: #34313
Problem Summary:
When the second argument of percentile is not literal, will report error :index out of range.
This pr fix this bug, taking the second argument of percentile directly, and changing the arguments of percentilearray from array literal to array expression.
Release note
None
Check List (For Author)
Test
Behavior changed:
Does this need documentation?
Check List (For Reviewer who merge this PR)