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: freeze the output order of UPDATE's select #13166

Merged
merged 5 commits into from
Nov 11, 2019

Conversation

winoros
Copy link
Member

@winoros winoros commented Nov 5, 2019

What problem does this PR solve?

Join reorder may be applied in optimization and cause the columns' output order changed.
The added test would panic then.

What is changed and how it works?

Add a projection to freeze the output order.

Check List

Tests

  • Unit test

Release note

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

@winoros winoros added sig/planner SIG: Planner type/bugfix This PR fixes a bug. labels Nov 5, 2019
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.

CI fails, @winoros PTAL

@winoros
Copy link
Member Author

winoros commented Nov 6, 2019

#13208 Would fix the failed unit test this pr meets.

@codecov
Copy link

codecov bot commented Nov 11, 2019

Codecov Report

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

@@             Coverage Diff             @@
##             master     #13166   +/-   ##
===========================================
  Coverage   80.1737%   80.1737%           
===========================================
  Files           469        469           
  Lines        112548     112548           
===========================================
  Hits          90234      90234           
  Misses        15320      15320           
  Partials       6994       6994

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

Copy link
Contributor

@lzmhhh123 lzmhhh123 left a comment

Choose a reason for hiding this comment

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

LGTM

@lzmhhh123 lzmhhh123 added status/can-merge Indicates a PR has been approved by a committer. status/LGT2 Indicates that a PR has LGTM 2. labels Nov 11, 2019
@sre-bot
Copy link
Contributor

sre-bot commented Nov 11, 2019

Your auto merge job has been accepted, waiting for 13354, 13209

@sre-bot
Copy link
Contributor

sre-bot commented Nov 11, 2019

/run-all-tests

@sre-bot
Copy link
Contributor

sre-bot commented Nov 11, 2019

@winoros merge failed.

@ngaut ngaut merged commit dffc515 into pingcap:master Nov 11, 2019
@winoros winoros deleted the freeze-update-output-order branch November 14, 2019 11:13
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.

6 participants