-
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
expression: fix constItem() and column-pruning in order by
clause
#11839
Conversation
Codecov Report
@@ Coverage Diff @@
## master #11839 +/- ##
===========================================
Coverage 81.2937% 81.2937%
===========================================
Files 438 438
Lines 94578 94578
===========================================
Hits 76886 76886
Misses 12217 12217
Partials 5475 5475 |
/run-common-test |
83ef6c6
to
3d09508
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.
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.
Can you add an explain test for this PR? thanks
Done |
/run-all-tests |
ceb7e05
to
6ef37fb
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.
LGTM
/run-all-tests |
cherry pick to release-2.1 failed |
It seems that, not for sure, we failed to cherry-pick this commit to release-2.1. Please comment '/run-cherry-picker' to try to trigger the cherry-picker if we did fail to cherry-pick this commit before. @wjhuang2016 PTAL. |
What problem does this PR solve?
#10064 Change the semantics of constItem().
A const item can be eval() when build a plan, and it shouldn't contain
correlated column
.Column-pruning in
order by
clause, however, need to identify a "const item" in execute stage. AndIsMutableEffectsExpr
should be enough.What is changed and how it works?
Change back constItem() and use
IsMutableEffectsExpr
. And exportisMutableEffectsExpr
asIsMutableEffectsExpr
Check List
Tests
Pass the test add by planner: keep unfoldable exprs when pruning columns for ORDER BY items #10064.
Code changes
Side effects
Related changes