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

Merged
merged 3 commits into from
Apr 16, 2020

Conversation

XuHuaiyu
Copy link
Contributor

@XuHuaiyu XuHuaiyu commented Apr 16, 2020

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

Copy link
Contributor

@eurekaka eurekaka 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 Author

/run-all-tests

Copy link
Member

@winoros winoros 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 Author

/run-unit-test

1 similar comment
@XuHuaiyu
Copy link
Contributor Author

/run-unit-test

@XuHuaiyu XuHuaiyu added the status/LGT2 Indicates that a PR has LGTM 2. label Apr 16, 2020
@SunRunAway SunRunAway merged commit ab57dc6 into pingcap:release-3.0 Apr 16, 2020
@XuHuaiyu XuHuaiyu deleted the release-3.0 branch April 16, 2020 10:30
sre-bot pushed a commit to sre-bot/tidb that referenced this pull request Apr 16, 2020
@sre-bot
Copy link
Contributor

sre-bot commented Apr 16, 2020

cherry pick to release-3.1 in PR #16477

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component/expression sig/planner SIG: Planner status/LGT2 Indicates that a PR has LGTM 2. type/bugfix This PR fixes a bug.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants