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: refactor the code of buildUpdate to solve some bugs #13208

Merged
merged 7 commits into from
Nov 11, 2019

Conversation

winoros
Copy link
Member

@winoros winoros commented Nov 6, 2019

What problem does this PR solve?

fix #13201 and fix #13202

What is changed and how it works?

Before entering buildUpdateLists, the passed arg updateTableList already used the AsName directly generated from ast.
We don't need to get the AsName from the created plan.

Also extractTableList didn't reset the DBName when use the AsName to set the Name.

Check List

Tests

  • Unit test

Related changes

  • Need to cherry-pick to the release branch

Release note

  • Write release note for bug-fix or new feature.

@winoros winoros requested a review from alivxxx November 6, 2019 11:43
executor/update_test.go Outdated Show resolved Hide resolved
@codecov
Copy link

codecov bot commented Nov 6, 2019

Codecov Report

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

@@             Coverage Diff             @@
##             master     #13208   +/-   ##
===========================================
  Coverage   80.2349%   80.2349%           
===========================================
  Files           469        469           
  Lines        112390     112390           
===========================================
  Hits          90176      90176           
  Misses        15264      15264           
  Partials       6950       6950

@winoros winoros requested a review from alivxxx November 6, 2019 12:08
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 added the status/LGT1 Indicates that a PR has LGTM 1. label Nov 7, 2019
Copy link
Member

@jackysp jackysp left a comment

Choose a reason for hiding this comment

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

LGTM

@jackysp jackysp added the status/can-merge Indicates a PR has been approved by a committer. label Nov 8, 2019
@sre-bot
Copy link
Contributor

sre-bot commented Nov 8, 2019

/run-all-tests

@sre-bot
Copy link
Contributor

sre-bot commented Nov 8, 2019

@winoros merge failed.

@winoros
Copy link
Member Author

winoros commented Nov 8, 2019

/run-common-test tidb-test=pr/943
/run-integration-common-test tidb-test=pr/943

@winoros
Copy link
Member Author

winoros commented Nov 11, 2019

/run-all-tests tidb-test=pr/943

@winoros winoros merged commit 613373e into pingcap:master Nov 11, 2019
@winoros winoros deleted the update-refactor branch November 11, 2019 04:50
@sre-bot
Copy link
Contributor

sre-bot commented Nov 11, 2019

cherry pick to release-3.0 failed

@sre-bot
Copy link
Contributor

sre-bot commented Nov 11, 2019

cherry pick to release-3.1 failed

@sre-bot
Copy link
Contributor

sre-bot commented Nov 11, 2019

cherry pick to release-2.1 failed

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/LGT1 Indicates that a PR has LGTM 1. type/bugfix This PR fixes a bug.
Projects
None yet
5 participants