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: fix wrong stats for physical union scan #14093

Merged
merged 5 commits into from
Dec 19, 2019

Conversation

lzmhhh123
Copy link
Contributor

What problem does this PR solve?

The stats for PhysicalUnionScan should be its physical child. But we set the stats as its logical child's stats. That's wrong.

What is changed and how it works?

Change the stats dynamically in findBestTask.

Check List

Tests

  • Unit test
  • Integration test

Side effects

  • Increased code complexity

Related changes

  • Need to cherry-pick to the release branch

@lzmhhh123 lzmhhh123 added type/bugfix This PR fixes a bug. sig/planner SIG: Planner needs-cherry-pick-2.1 labels Dec 17, 2019
@lzmhhh123 lzmhhh123 requested a review from a team as a code owner December 17, 2019 08:21
@ghost ghost requested review from alivxxx and winoros and removed request for a team December 17, 2019 08:21
@lzmhhh123 lzmhhh123 requested a review from eurekaka December 17, 2019 08:21
@lzmhhh123 lzmhhh123 requested a review from eurekaka December 17, 2019 09:13
@codecov
Copy link

codecov bot commented Dec 17, 2019

Codecov Report

❗ No coverage uploaded for pull request base (master@964e893). Click here to learn what that means.
The diff coverage is 100%.

@@             Coverage Diff             @@
##             master     #14093   +/-   ##
===========================================
  Coverage          ?   80.1538%           
===========================================
  Files             ?        483           
  Lines             ?     121434           
  Branches          ?          0           
===========================================
  Hits              ?      97334           
  Misses            ?      16343           
  Partials          ?       7757

Copy link
Contributor

@eurekaka eurekaka left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link
Contributor

@alivxxx alivxxx left a comment

Choose a reason for hiding this comment

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

LGTM

alivxxx
alivxxx previously approved these changes Dec 18, 2019
@alivxxx alivxxx added the status/can-merge Indicates a PR has been approved by a committer. label Dec 18, 2019
@sre-bot
Copy link
Contributor

sre-bot commented Dec 18, 2019

/run-all-tests

@sre-bot
Copy link
Contributor

sre-bot commented Dec 18, 2019

@lzmhhh123 merge failed.

@lzmhhh123
Copy link
Contributor Author

/merge

@sre-bot
Copy link
Contributor

sre-bot commented Dec 19, 2019

/run-all-tests

@sre-bot sre-bot merged commit 08be35d into pingcap:master Dec 19, 2019
@sre-bot
Copy link
Contributor

sre-bot commented Dec 19, 2019

cherry pick to release-2.1 failed

@sre-bot
Copy link
Contributor

sre-bot commented Dec 19, 2019

cherry pick to release-3.0 failed

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. type/bugfix This PR fixes a bug.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants