-
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/core: use constant propagate before predicates push down #21061
Conversation
Please add some test case for this commit |
I still have some problems unsolved,And then I'll add the test cases😂. |
@ou-bing merge failed. |
/merge |
Your auto merge job has been accepted, waiting for:
|
/run-all-tests |
@ou-bing merge failed. |
@winoros Is the test failed because of this commit? |
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.
@@ -99,6 +99,7 @@ func (p *LogicalUnionScan) PredicatePushDown(predicates []expression.Expression) | |||
|
|||
// PredicatePushDown implements LogicalPlan PredicatePushDown interface. | |||
func (ds *DataSource) PredicatePushDown(predicates []expression.Expression) ([]expression.Expression, LogicalPlan) { | |||
predicates = expression.PropagateConstant(ds.ctx, predicates) |
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.
Maybe we would do expression.PropagateConstant
many times (much more than necessary).
/run-common-test tidb-test=pr/1121 |
/run-integration-common-test tidb-test=pr/1121 |
/merge |
Your auto merge job has been accepted, waiting for:
|
/run-all-tests |
/merge |
/run-all-tests |
@ou-bing merge failed. |
/run-integration-common-test tidb-test=pr/1121 |
/run-integration-common-test tidb-test=pr/1121 |
What problem does this PR solve?
Issue Number: close #20139 #14481
Problem Summary:
What is changed and how it works?
use constant propagate before range partition pruning
Check List
Tests
Release note