-
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: don't push down some conditions to projections #37992
Conversation
[REVIEW NOTIFICATION] This pull request has been approved by:
To complete the pull request process, please ask the reviewers in the list to review by filling The full list of commands accepted by this bot can be found here. Reviewer can indicate their review by submitting an approval review. |
expression/util.go
Outdated
// e.g. CREATE TABLE t3(c0 INT, primary key(c0)); | ||
// SELECT v2.c0 FROM (select 1 as c0 from t3) v2 WHERE (v2.c0)like(True); | ||
// The cond `(v2.c0)like(True)` can not be substituted when the new collation enable. So we shouldn't push the cond down to the projection. | ||
func ColumnSubstitute4PPD2P(expr Expression, schema *Schema, newExprs []Expression) (bool, Expression) { |
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.
the func name is complicated >.<
/merge |
This pull request has been accepted and is ready to merge. Commit hash: 5f3e441
|
/run-mysql-test tide-test=pr/1979 |
/hold |
/run-mysql-test tide-test=pr/1979 |
/run-mysql-test tidb-test=pr/1979 |
/run-check_dev_2 |
/merge |
/run-mysql-test tidb-test=pr/1979 |
/merge |
/run-mysql-test tidb-test=pr/1979 |
Signed-off-by: ti-srebot <ti-srebot@pingcap.com>
cherry pick to release-6.1 in PR #38159 |
Signed-off-by: ti-srebot <ti-srebot@pingcap.com>
cherry pick to release-6.3 in PR #38160 |
TiDB MergeCI notify🔴 Bad News! New failing [4] after this pr merged.
|
THE pr #38802 handle the same problem but in a more reasonable way. So we don't need this PR because that PR has changed the code of this PR. |
What problem does this PR solve?
Issue Number:
Problem Summary:
Some conditions shouldn't be pushed down to projection.
What is changed and how it works?
Check whether the conditions can be pushed down to projection.
There may be some side effect, see the knowledge base doc for more details.
Check List
Tests
Side effects
Documentation
Release note
Please refer to Release Notes Language Style Guide to write a quality release note.