-
Notifications
You must be signed in to change notification settings - Fork 13.5k
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
[FLINK-21302][table-planner-blink] Fix NPE when use row_number() in over agg #14880
Conversation
Thanks a lot for your contribution to the Apache Flink project. I'm the @flinkbot. I help the community Automated ChecksLast check on commit 72a1f4b (Fri May 28 09:13:36 UTC 2021) Warnings:
Mention the bot in a comment to re-run the automated checks. Review Progress
Please see the Pull Request Review Guide for a full explanation of the review process. The Bot is tracking the review progress through labels. Labels are applied according to the order of the review items. For consensus, approval by a Flink committer of PMC member is required Bot commandsThe @flinkbot bot supports the following commands:
|
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.
Thanks for the contribution @beyond1920 , It's better we make sure that the argIndexes is not null when AggregateInfo is created. That we can safely use the argIndexes anywhere.
@godfreyhe Thanks for the review. I've addressed. |
@flinkbot run azure |
55ad256
to
ebe907b
Compare
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.
I think we need only make sure the argIndexes
is not null when calling transformToAggregateInfo
method. if that, there is only one place that needs to be changed.
@flinkbot run azure |
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.
LGTM
…verAgg This closes apache#14880 (cherry picked from commit 293739d)
"5,3", | ||
"5,4", | ||
"5,5") | ||
assertEquals(expected, sink.getAppendResults) |
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.
No sort here, this case is unstable.
What is the purpose of the change
Fix NPE when use row_number() in over agg.
Brief change log
Minor update in
DeclarativeAggCodeGen
to take aggregate without parameters into consideration.Verifying this change
ITCase
Does this pull request potentially affect one of the following parts:
@Public(Evolving)
: noDocumentation