Skip to content

[fix] (planner) passthrough child in SetOperationNode is wrong when enable vectorized engine - #9991

Merged
morningman merged 1 commit into
apache:masterfrom
morrySnow:fix_passthrough
Jun 8, 2022
Merged

morningman merged 1 commit into
apache:masterfrom
morrySnow:fix_passthrough

Conversation

@morrySnow

Copy link
Copy Markdown
Contributor

Proposed changes

Issue Number: close #9952

Problem Summary:

In SetOperationNode we do passthrough, if we child output is same with itself output. In method isChildPassthrough we only consider memory layout. When we use vectorized engine, we need to use SlotDesc offset in TupleDesc instead of memory layout to check whether pass-through can be performed

Checklist(Required)

  1. Does it affect the original behavior: No
  2. Has unit tests been added: No
  3. Has document been added or modified: No Need
  4. Does it need to update dependencies: No
  5. Are there any changes that cannot be rolled back:No

Further comments

Add UT and regression-test later.

@github-actions github-actions Bot added the area/planner Issues or PRs related to the query planner label Jun 7, 2022
@morrySnow
morrySnow requested review from HappenLee and morningman June 7, 2022 08:30
@morrySnow morrySnow added area/planner Issues or PRs related to the query planner dev/1.0.1-deprecated should be merged into dev-1.0.1 branch and removed area/planner Issues or PRs related to the query planner labels Jun 7, 2022

@dataroaring dataroaring left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I tested it, and it pass the failed case.

@github-actions github-actions Bot added the approved Indicates a PR has been approved by one committer. label Jun 7, 2022
@github-actions

github-actions Bot commented Jun 7, 2022

Copy link
Copy Markdown
Contributor

PR approved by at least one committer and no changes requested.

@github-actions

github-actions Bot commented Jun 7, 2022

Copy link
Copy Markdown
Contributor

PR approved by anyone and no changes requested.

@morningman
morningman merged commit 2ed5234 into apache:master Jun 8, 2022
morningman pushed a commit that referenced this pull request Jun 8, 2022
…able vector engine (#9991)

In SetOperationNode we do passthrough, if we child output is same with itself output.
In method isChildPassthrough we only consider memory layout.
When we use vectorized engine, we need to use SlotDesc offset in TupleDesc instead of
memory layout to check whether pass-through can be performed
@morningman morningman added dev/merged-1.0.1-deprecated PR has been merged into dev-1.0.1 and removed dev/1.0.1-deprecated should be merged into dev-1.0.1 branch labels Jun 8, 2022
@morrySnow
morrySnow deleted the fix_passthrough branch June 14, 2022 11:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

approved Indicates a PR has been approved by one committer. area/planner Issues or PRs related to the query planner dev/merged-1.0.1-deprecated PR has been merged into dev-1.0.1 reviewed

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug] DCHECK(_data_types[i]->is_nullable()) core

3 participants