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

plan: build separate required physical property for children #8635

Merged
merged 4 commits into from
Dec 10, 2018

Conversation

eurekaka
Copy link
Contributor

@eurekaka eurekaka commented Dec 10, 2018

What problem does this PR solve?

Fix #8634

What is changed and how it works?

RCA is provided here #8634 (comment)

For logical operator which passes the required physical property down to its children, make a copy for it instead of direct assignment using the original pointer.

Check List

Tests

  • Unit test

Code changes

  • Has exported function/method change

Side effects

N/A

Related changes

  • Need to cherry-pick to the release branch

This change is Reviewable

For logical operator which passs the required physical property
down to its children, make a copy for it instead of direct assignment
using the original pointer.
@eurekaka eurekaka added type/bugfix This PR fixes a bug. sig/planner SIG: Planner labels Dec 10, 2018
@eurekaka
Copy link
Contributor Author

/run-all-tests

@eurekaka
Copy link
Contributor Author

@zz-jason @winoros PTAL

@eurekaka
Copy link
Contributor Author

@lamxTyler @XuHuaiyu PTAL

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 Dec 10, 2018
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 status/LGT2 Indicates that a PR has LGTM 2. and removed status/LGT1 Indicates that a PR has LGTM 1. labels Dec 10, 2018
Copy link
Contributor

@XuHuaiyu XuHuaiyu left a comment

Choose a reason for hiding this comment

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

LGTM

@eurekaka eurekaka merged commit 97b569c into pingcap:master Dec 10, 2018
@eurekaka eurekaka deleted the smj_selection branch December 10, 2018 09:45
@zz-jason
Copy link
Member

@eurekaka Please cherry pick this change to release-2.1 and release-2.0.

@eurekaka
Copy link
Contributor Author

Sure

iamzhoug37 pushed a commit to iamzhoug37/tidb that referenced this pull request Dec 13, 2018
…#8635)


For logical operator which passes the required physical property
down to its children, make a copy for it instead of direct assignment
using the original pointer.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
sig/planner SIG: Planner 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.

4 participants