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

planner: make single partition table support index join on inner side #19151

Conversation

lzmhhh123
Copy link
Contributor

What problem does this PR solve?

Issue Number: close #19145

What is changed and how it works?

What's Changed: append partition info for table scan on inner side of index join.

Related changes

  • Need to cherry-pick to the release branch

Check List

Tests

  • Unit test
  • Integration test

Side effects

  • Performance regression
    • Consumes more CPU

Release note

  • make single partition table support index join on the inner side.

@lzmhhh123 lzmhhh123 added type/bugfix This PR fixes a bug. sig/planner SIG: Planner needs-cherry-pick-4.0 labels Aug 12, 2020
@lzmhhh123 lzmhhh123 requested review from a team as code owners August 12, 2020 08:07
@lzmhhh123 lzmhhh123 requested review from SunRunAway, tiancaiamao and winoros and removed request for a team August 12, 2020 08:07
@lzmhhh123 lzmhhh123 added the priority/release-blocker This issue blocks a release. Please solve it ASAP. label Aug 12, 2020
@lzmhhh123
Copy link
Contributor Author

/run-check_dev

@codecov
Copy link

codecov bot commented Aug 12, 2020

Codecov Report

Merging #19151 into master will not change coverage.
The diff coverage is n/a.

@@             Coverage Diff             @@
##             master     #19151   +/-   ##
===========================================
  Coverage   79.1708%   79.1708%           
===========================================
  Files           550        550           
  Lines        149992     149992           
===========================================
  Hits         118750     118750           
  Misses        21708      21708           
  Partials       9534       9534           

func (s *testSuiteWithData) TestIndexJoinOnSinglePartitionTable(c *C) {
// For issue 19145
tk := testkit.NewTestKitWithInit(c, s.store)
tk.MustExec("set @try_old_partition_implementation = 1")
Copy link
Contributor

Choose a reason for hiding this comment

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

This only fix the old implementation, it's enough for the 4.0 branch (This is a release blocker).
I'll file another PR to fix for the new implementation.

@tiancaiamao
Copy link
Contributor

LGTM

@ti-srebot
Copy link
Contributor

@tiancaiamao,Thanks for your review. However, LGTM is restricted to Reviewers or higher roles.See the corresponding SIG page for more information. Related SIGs: planner(slack).

Copy link
Contributor

@SunRunAway SunRunAway left a comment

Choose a reason for hiding this comment

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

LGTM

@ti-srebot ti-srebot added the status/LGT1 Indicates that a PR has LGTM 1. label Aug 14, 2020
@ti-srebot ti-srebot removed the status/LGT1 Indicates that a PR has LGTM 1. label Aug 14, 2020
@ti-srebot ti-srebot added the status/LGT2 Indicates that a PR has LGTM 2. label Aug 14, 2020
@winoros
Copy link
Member

winoros commented Aug 14, 2020

/merge

@ti-srebot ti-srebot added the status/can-merge Indicates a PR has been approved by a committer. label Aug 14, 2020
@ti-srebot
Copy link
Contributor

Your auto merge job has been accepted, waiting for:

  • 19179

@ti-srebot
Copy link
Contributor

/run-all-tests

@ti-srebot
Copy link
Contributor

@lzmhhh123 merge failed.

@lzmhhh123 lzmhhh123 merged commit 030eab2 into pingcap:master Aug 14, 2020
@lzmhhh123 lzmhhh123 deleted the bug-fix/make_one_paritition_support_index_join branch August 14, 2020 03:52
ti-srebot pushed a commit to ti-srebot/tidb that referenced this pull request Aug 14, 2020
@ti-srebot
Copy link
Contributor

cherry pick to release-4.0 in PR #19197

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
priority/release-blocker This issue blocks a release. Please solve it ASAP. sig/planner SIG: Planner 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.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

IndexMergeJoin on a partitioned table causes wrong result
5 participants