Skip to content

expression: do not derive filters containing null sensitive functions from outer join (#27067)#27196

Merged
ti-chi-bot merged 2 commits intopingcap:release-5.2from
ti-srebot:release-5.2-f7917916ed24
Aug 16, 2021
Merged

expression: do not derive filters containing null sensitive functions from outer join (#27067)#27196
ti-chi-bot merged 2 commits intopingcap:release-5.2from
ti-srebot:release-5.2-f7917916ed24

Conversation

@ti-srebot
Copy link
Contributor

@ti-srebot ti-srebot commented Aug 13, 2021

cherry-pick #27067 to release-5.2
You can switch your code base to this Pull Request by using git-extras:

# In tidb repo:
git pr https://github.com/pingcap/tidb/pull/27196

After apply modifications, you can push your change to this PR via:

git push git@github.com:ti-srebot/tidb.git pr/27196:release-5.2-f7917916ed24

What problem does this PR solve?

Issue Number: close #26758

Problem Summary:
Wrong query result.

What is changed and how it works?

What's Changed:
Do not derive filters containing null sensitive functions from outer join

How it Works:
Those derived null related functions would reduce the input of the join children, and hence the outer join results.

Check List

Tests

  • Unit test

Side effects

N/A

Documentation

N/A

Release note

None

@ti-chi-bot
Copy link
Member

ti-chi-bot commented Aug 13, 2021

[REVIEW NOTIFICATION]

This pull request has been approved by:

  • time-and-fate
  • winoros

To complete the pull request process, please ask the reviewers in the list to review by filling /cc @reviewer in the comment.
After your PR has acquired the required number of LGTMs, you can assign this pull request to the committer in the list by filling /assign @committer in the comment to help you merge this pull request.

The full list of commands accepted by this bot can be found here.

Details

Reviewer can indicate their review by submitting an approval review.
Reviewer can cancel approval by submitting a request changes review.

@ti-srebot
Copy link
Contributor Author

/run-all-tests

@ti-chi-bot ti-chi-bot added do-not-merge/release-note-label-needed Indicates that a PR should not merge because it's missing one of the release note labels. release-note-none Denotes a PR that doesn't merit a release note. and removed do-not-merge/release-note-label-needed Indicates that a PR should not merge because it's missing one of the release note labels. labels Aug 13, 2021
@ti-srebot ti-srebot added component/expression sig/planner SIG: Planner size/M Denotes a PR that changes 30-99 lines, ignoring generated files. type/5.2-cherry-pick type/bugfix This PR fixes a bug. labels Aug 13, 2021
@ti-srebot
Copy link
Contributor Author

@eurekaka you're already a collaborator in bot's repo.

@ti-chi-bot ti-chi-bot added size/XL Denotes a PR that changes 500-999 lines, ignoring generated files. and removed size/M Denotes a PR that changes 30-99 lines, ignoring generated files. labels Aug 13, 2021
Signed-off-by: ti-srebot <ti-srebot@pingcap.com>
@eurekaka eurekaka force-pushed the release-5.2-f7917916ed24 branch from fca8d0c to 7c715bc Compare August 16, 2021 09:30
@ti-chi-bot ti-chi-bot added size/M Denotes a PR that changes 30-99 lines, ignoring generated files. and removed size/XL Denotes a PR that changes 500-999 lines, ignoring generated files. labels Aug 16, 2021
@ti-chi-bot ti-chi-bot added the status/LGT1 Indicates that a PR has LGTM 1. label Aug 16, 2021
@ti-chi-bot ti-chi-bot added status/LGT2 Indicates that a PR has LGTM 2. and removed status/LGT1 Indicates that a PR has LGTM 1. labels Aug 16, 2021
@winoros
Copy link
Member

winoros commented Aug 16, 2021

/merge

@ti-chi-bot
Copy link
Member

This pull request has been accepted and is ready to merge.

DetailsCommit hash: 0cdd398

@ti-chi-bot ti-chi-bot added the status/can-merge Indicates a PR has been approved by a committer. label Aug 16, 2021
@zhouqiang-cl zhouqiang-cl added the cherry-pick-approved Cherry pick PR approved by release team. label Aug 16, 2021
@ti-chi-bot ti-chi-bot merged commit a20edd2 into pingcap:release-5.2 Aug 16, 2021
@eurekaka
Copy link
Contributor

/run-check_dev

@eurekaka eurekaka deleted the release-5.2-f7917916ed24 branch August 17, 2021 02:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cherry-pick-approved Cherry pick PR approved by release team. component/expression release-note-none Denotes a PR that doesn't merit a release note. sig/planner SIG: Planner size/M Denotes a PR that changes 30-99 lines, ignoring generated files. status/can-merge Indicates a PR has been approved by a committer. status/LGT2 Indicates that a PR has LGTM 2. type/bugfix This PR fixes a bug. type/5.2-cherry-pick

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants