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

plan: fix predicate push down for UnionScan #7726

Merged
merged 2 commits into from
Sep 20, 2018

Conversation

coocood
Copy link
Member

@coocood coocood commented Sep 17, 2018

What problem does this PR solve?

Cherry-pick #7695

What is changed and how it works?

The predicate push down for UnionScan plan returns retained predicates instead of nil.

If we return nil predicates, the parent Selection will be removed, but conditions in UnionScan is only used to evaluate dirty table added rows, the conditions that cannot be pushed down to coprocessor will be lost.

Check List

Tests

  • Unit test

@coocood
Copy link
Member Author

coocood commented Sep 17, 2018

/run-all-tests tikv=release-2.0 tidb-test=release-2.0 pd=release-2.0

@shenli
Copy link
Member

shenli commented Sep 17, 2018

LGTM

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

@lysu
Copy link
Contributor

lysu commented Sep 17, 2018

@coocood maybe need try this test PR https://github.com/pingcap/tidb-test/pull/624

@lysu
Copy link
Contributor

lysu commented Sep 17, 2018

/run-common-test tidb-test=pr/624 tikv=release-2.0 pd=release-2.0
/run-integration-common-test tidb-test=pr/624 tikv=release-2.0 pd=release-2.0

@lysu
Copy link
Contributor

lysu commented Sep 20, 2018

/run-common-test tidb-test=release-2.0 tikv=release-2.0 pd=release-2.0
/run-integration-common-test tidb-test=release-2.0 tikv=release-2.0 pd=release-2.0

@coocood
Copy link
Member Author

coocood commented Sep 20, 2018

/run-all-tests tidb-test=pr/624 tikv=release-2.0 pd=release-2.0

@coocood coocood added the status/LGT2 Indicates that a PR has LGTM 2. label Sep 20, 2018
@zz-jason zz-jason merged commit 23baa75 into pingcap:release-2.0 Sep 20, 2018
@coocood coocood deleted the fix-union-scan-2.0 branch May 22, 2019 08:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
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.

4 participants