Skip to content

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

Merged
ti-chi-bot merged 1 commit intopingcap:release-4.0from
ti-srebot:release-4.0-f7917916ed24
Sep 6, 2021
Merged

expression: do not derive filters containing null sensitive functions from outer join (#27067)#27193
ti-chi-bot merged 1 commit intopingcap:release-4.0from
ti-srebot:release-4.0-f7917916ed24

Conversation

@ti-srebot
Copy link
Contributor

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

cherry-pick #27067 to release-4.0
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/27193

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

git push git@github.com:ti-srebot/tidb.git pr/27193:release-4.0-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
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/4.0-cherry-pick type/bugfix This PR fixes a bug. labels Aug 13, 2021
@ti-srebot ti-srebot added this to the v4.0.14 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-4.0-f7917916ed24 branch from 9f9c3c8 to d50568f Compare August 18, 2021 06:32
@ti-chi-bot ti-chi-bot added size/S Denotes a PR that changes 10-29 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
@zhouqiang-cl zhouqiang-cl added the cherry-pick-approved Cherry pick PR approved by release team. label Sep 6, 2021
@eurekaka
Copy link
Contributor

eurekaka commented Sep 6, 2021

/merge

@ti-chi-bot
Copy link
Member

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

DetailsCommit hash: d50568f31e73eb3cdce51be44c1e949844a77e54

@ti-chi-bot ti-chi-bot added the status/can-merge Indicates a PR has been approved by a committer. label Sep 6, 2021
@eurekaka
Copy link
Contributor

eurekaka commented Sep 6, 2021

/run-check_dev

@eurekaka eurekaka force-pushed the release-4.0-f7917916ed24 branch from a34da99 to 223957b Compare September 6, 2021 10:03
@ti-chi-bot ti-chi-bot removed the status/can-merge Indicates a PR has been approved by a committer. label Sep 6, 2021
@zhouqiang-cl
Copy link
Contributor

/merge

@ti-chi-bot
Copy link
Member

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

DetailsCommit hash: 223957b

@ti-chi-bot ti-chi-bot added the status/can-merge Indicates a PR has been approved by a committer. label Sep 6, 2021
@ti-chi-bot ti-chi-bot merged commit 02c86ef into pingcap:release-4.0 Sep 6, 2021
@eurekaka eurekaka deleted the release-4.0-f7917916ed24 branch September 7, 2021 02:29
@zhouqiang-cl zhouqiang-cl modified the milestones: v4.0.14, v4.0.15 Sep 14, 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/S Denotes a PR that changes 10-29 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/4.0-cherry-pick

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants