Skip to content

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

Merged
ti-chi-bot merged 2 commits intopingcap:release-5.1from
ti-srebot:release-5.1-f7917916ed24
Sep 14, 2021
Merged

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

Conversation

@ti-srebot
Copy link
Contributor

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

cherry-pick #27067 to release-5.1
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/27195

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

git push git@github.com:ti-srebot/tidb.git pr/27195:release-5.1-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:

  • qw4990
  • 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 ti-srebot requested review from a team as code owners August 13, 2021 06:51
@ti-srebot ti-srebot requested review from XuHuaiyu and removed request for a team August 13, 2021 06:51
@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.1-cherry-pick type/bugfix This PR fixes a bug. labels Aug 13, 2021
@ti-srebot ti-srebot added this to the v5.1.1 milestone 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/XXL Denotes a PR that changes 1000+ lines, ignoring generated files. and removed size/M Denotes a PR that changes 30-99 lines, ignoring generated files. labels Aug 13, 2021
@eurekaka eurekaka force-pushed the release-5.1-f7917916ed24 branch from 28f9a14 to 75aca94 Compare August 18, 2021 03:53
@ti-chi-bot ti-chi-bot added size/M Denotes a PR that changes 30-99 lines, ignoring generated files. and removed size/XXL Denotes a PR that changes 1000+ lines, ignoring generated files. labels Aug 18, 2021
@ti-chi-bot ti-chi-bot added the status/LGT1 Indicates that a PR has LGTM 1. label Aug 18, 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 18, 2021
@qw4990
Copy link
Contributor

qw4990 commented Sep 7, 2021

/merge

@ti-chi-bot
Copy link
Member

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

DetailsCommit hash: 833565c

@ti-chi-bot ti-chi-bot added the status/can-merge Indicates a PR has been approved by a committer. label Sep 7, 2021
@zhouqiang-cl zhouqiang-cl added the cherry-pick-approved Cherry pick PR approved by release team. label Sep 14, 2021
@ti-chi-bot ti-chi-bot merged commit 376c94b into pingcap:release-5.1 Sep 14, 2021
@zhouqiang-cl zhouqiang-cl modified the milestones: v5.1.1, v5.1.2 Sep 18, 2021
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.1-cherry-pick

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants