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

executor: skip inner rows when the join keys contains NULL #7255

Merged
merged 5 commits into from
Aug 5, 2018

Conversation

zz-jason
Copy link
Member

@zz-jason zz-jason commented Aug 2, 2018

What have you changed? (mandatory)

This PR skips the inner rows which contains NULL value in the join key for "Merge Join" and "Index Join", thus they behaves the same as "Hash Join".

What is the type of the changes? (mandatory)

  • Bug fix (non-breaking change which fixes an issue)

How has this PR been tested? (mandatory)

existing tests.

Does this PR affect documentation (docs/docs-cn) update? (mandatory)

Does this PR affect tidb-ansible update? (mandatory)

Does this PR need to be added to the release notes? (mandatory)

Yes

release note:
Fix the wrong behavior of `Merge Join` and `Index Join` in a special scenario.

Refer to a related PR or issue link (optional)

to #7226

Benchmark result if necessary (optional)

Add a few positive/negative examples (optional)

@zz-jason zz-jason added type/bugfix This PR fixes a bug. sig/execution SIG execution release-note Denotes a PR that will be considered when it comes time to generate release notes. labels Aug 2, 2018
@zz-jason
Copy link
Member Author

zz-jason commented Aug 2, 2018

/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.

A more better way is add a selection which has is not null filter below the join.
But it's okay for now.
lgtm

@lysu
Copy link
Contributor

lysu commented Aug 3, 2018

/run-unit-test

@winoros winoros added the status/LGT1 Indicates that a PR has LGTM 1. label Aug 3, 2018
Copy link
Contributor

@birdstorm birdstorm left a comment

Choose a reason for hiding this comment

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

LGTM

@birdstorm birdstorm added status/LGT2 Indicates that a PR has LGTM 2. and removed status/LGT1 Indicates that a PR has LGTM 1. labels Aug 5, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
release-note Denotes a PR that will be considered when it comes time to generate release notes. sig/execution SIG execution 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