Skip to content
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, planner: do not eliminate the innermost NOT when push down not (#16451) #16477

Merged
merged 4 commits into from
Apr 24, 2020

Conversation

sre-bot
Copy link
Contributor

@sre-bot sre-bot commented Apr 16, 2020

cherry-pick #16451 to release-3.1


What problem does this PR solve?

Issue Number: close #16440

Problem Summary:

What is changed and how it works?

Proposal: xxx

What's Changed:
Before this commit, we'll wrap a IsTrue for the arg of the innermost NOT.
But the implementation of IsTrue in TiDB is not the same as TiKV after #12173.

Even if we correct the implementation of IsTrue on TiKV, the parameter keepNull can not be pushed down on release-3.0 and release-3.1.

Thus we do not eliminate the innermost NOT instead of wrapping a IsTrue here.

How it Works:

Related changes

  • Need to cherry-pick to the release branch

Check List

Tests

  • Integration test

Side effects

  • Performance regression
    • Consumes more CPU

Release note

@sre-bot
Copy link
Contributor Author

sre-bot commented Apr 16, 2020

/run-all-tests

@XuHuaiyu XuHuaiyu added the priority/release-blocker This issue blocks a release. Please solve it ASAP. label Apr 24, 2020
Copy link
Member

@zz-jason zz-jason left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@zz-jason zz-jason added the status/LGT1 Indicates that a PR has LGTM 1. label Apr 24, 2020
@XuHuaiyu
Copy link
Contributor

/run-all-tests

Copy link
Contributor

@SunRunAway SunRunAway left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@XuHuaiyu
Copy link
Contributor

/run-sqllogic-test

@zz-jason zz-jason merged commit d7423c5 into pingcap:release-3.1 Apr 24, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component/expression priority/release-blocker This issue blocks a release. Please solve it ASAP. sig/planner SIG: Planner status/LGT1 Indicates that a PR has LGTM 1. type/bugfix This PR fixes a bug. type/3.1-cherry-pick
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants