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: handle single partition in IndexJoin correctly #12581

Merged
merged 2 commits into from
Oct 15, 2019

Conversation

eurekaka
Copy link
Contributor

@eurekaka eurekaka commented Oct 9, 2019

What problem does this PR solve?

Fix #12549

What is changed and how it works?

Set isPartition and physicalTableID for PhysicalIndexScan correctly when the inner child is a single partition of a partitioned table.

Check List

Tests

  • Unit test

Code changes

N/A

Side effects

N/A

Related changes

  • Need to cherry-pick to the release branch

Release note

N/A

@eurekaka eurekaka added type/bugfix This PR fixes a bug. sig/planner SIG: Planner needs-cherry-pick-2.1 labels Oct 9, 2019
@codecov
Copy link

codecov bot commented Oct 9, 2019

Codecov Report

Merging #12581 into master will decrease coverage by 0.0383%.
The diff coverage is 100%.

@@               Coverage Diff                @@
##             master     #12581        +/-   ##
================================================
- Coverage   79.9006%   79.8622%   -0.0384%     
================================================
  Files           462        462                
  Lines        104864     104833        -31     
================================================
- Hits          83787      83722        -65     
- Misses        14886      14914        +28     
- Partials       6191       6197         +6

@eurekaka
Copy link
Contributor Author

/run-all-tests

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

@zz-jason
Copy link
Member

@eurekaka please resolve the conflicts.

Copy link
Member

@zz-jason zz-jason left a comment

Choose a reason for hiding this comment

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

LGTM

@zz-jason zz-jason added the status/LGT2 Indicates that a PR has LGTM 2. label Oct 14, 2019
@zz-jason zz-jason removed the request for review from winoros October 15, 2019 03:17
@zz-jason zz-jason added the status/can-merge Indicates a PR has been approved by a committer. label Oct 15, 2019
@sre-bot
Copy link
Contributor

sre-bot commented Oct 15, 2019

/run-all-tests

@sre-bot sre-bot merged commit 4a43daa into pingcap:master Oct 15, 2019
@sre-bot
Copy link
Contributor

sre-bot commented Oct 15, 2019

cherry pick to release-3.1 failed

@sre-bot
Copy link
Contributor

sre-bot commented Oct 15, 2019

cherry pick to release-2.1 failed

@sre-bot
Copy link
Contributor

sre-bot commented Oct 15, 2019

cherry pick to release-3.0 failed

@eurekaka eurekaka deleted the partition branch October 15, 2019 03:51
eurekaka added a commit to eurekaka/tidb that referenced this pull request Oct 15, 2019
Conflicts:
	planner/core/exhaust_physical_plans.go
eurekaka added a commit to eurekaka/tidb that referenced this pull request Oct 15, 2019
Conflicts:
	planner/core/exhaust_physical_plans.go
eurekaka added a commit to eurekaka/tidb that referenced this pull request Oct 15, 2019
Conflicts:
	executor/index_lookup_join_test.go
	planner/core/exhaust_physical_plans.go
eurekaka added a commit that referenced this pull request Oct 16, 2019
)

Conflicts:
	planner/core/exhaust_physical_plans.go
XiaTianliang pushed a commit to XiaTianliang/tidb that referenced this pull request Dec 21, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
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.

planner: index look join doesn't treat inner table as partition table correctly
6 participants