-
Notifications
You must be signed in to change notification settings - Fork 5.9k
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
planner: fold constant in projection elimination and TopN push down #14927
Conversation
Codecov Report
@@ Coverage Diff @@
## master #14927 +/- ##
================================================
+ Coverage 80.2223% 80.2591% +0.0368%
================================================
Files 503 503
Lines 130905 130911 +6
================================================
+ Hits 105015 105068 +53
+ Misses 17586 17552 -34
+ Partials 8304 8291 -13 |
/rebuild |
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
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
/merge |
Your auto merge job has been accepted, waiting for 14664 |
/run-all-tests |
@eurekaka merge failed. |
/run-unit-test |
cherry pick to release-2.1 failed |
cherry pick to release-3.0 failed |
cherry pick to release-4.0 failed |
It seems that, not for sure, we failed to cherry-pick this commit to release-2.1 release-3.0. Please comment '/run-cherry-picker' to try to trigger the cherry-picker if we did fail to cherry-pick this commit before. @eurekaka PTAL. |
What problem does this PR solve?
Fix #14926.
What is changed and how it works?
Fold constant in projection elimination. TopN pushdown check is unnecessary for this case actually, but we can enforce it to prevent potential bugs incurred by patches from future.
Check List
Tests
Code changes
N/A
Side effects
N/A
Related changes
Release note
fix wrong result for queries with single MAX() over UNION