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

*: avoid using columnEvaluator for the Projectin build by buildProjtion4Union #8142

Merged
merged 4 commits into from
Nov 2, 2018

Conversation

XuHuaiyu
Copy link
Contributor

@XuHuaiyu XuHuaiyu commented Nov 1, 2018

What problem does this PR solve?

Fix #8141

What is changed and how it works?

As the title says. This is a workaround to fix the issue.
The issue happens because that one of the result Chunk actually has 1 column, which the other has 2 columns.
UnionExec is executed parallelly, and the result Chunks of the two children will be re-used together.
When the child which need a Chunk with 2 columns fetches a Chunk with 1 column, it will cause unexcepted behavior.
After we support column pool(#7971), this situation can be avoided.

Check List

Tests

  • Integration test

Code changes

  • Has exported function/method change
  • Has exported variable/fields change

Side effects

Related changes

  • Need to cherry-pick to the release branch
    release-2.0 release-2.1

@XuHuaiyu XuHuaiyu added type/bugfix This PR fixes a bug. sig/execution SIG execution labels Nov 1, 2018
@XuHuaiyu
Copy link
Contributor Author

XuHuaiyu commented Nov 1, 2018

/run-all-tests

Co-Authored-By: XuHuaiyu <[email protected]>
Copy link
Member

@winoros winoros left a comment

Choose a reason for hiding this comment

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

lgtm

@winoros winoros added the status/LGT1 Indicates that a PR has LGTM 1. label Nov 2, 2018
@XuHuaiyu
Copy link
Contributor Author

XuHuaiyu commented Nov 2, 2018

PTAL @zz-jason @lamxTyler @eurekaka

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
sig/execution SIG execution 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.

unstable results for Union
3 participants