-
Notifications
You must be signed in to change notification settings - Fork 5.9k
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, executor: fix the logic for inline projection of executors #45158
planner, executor: fix the logic for inline projection of executors #45158
Conversation
97d979a
to
e7987f1
Compare
e7987f1
to
95592dc
Compare
95592dc
to
0a2bcdd
Compare
/retest |
/retest |
@winoros: The following test failed, say
Full PR test history. Your PR dashboard. Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here. |
/retest |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: elsa0520, fixdb, qw4990 The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
In response to a cherrypick label: new pull request created to branch |
Signed-off-by: ti-chi-bot <[email protected]>
In response to a cherrypick label: new pull request created to branch |
Signed-off-by: ti-chi-bot <[email protected]>
p.SetChildren(subPlan) | ||
} | ||
// The limit missed its output cols via the protobuf. | ||
// We need to add it back and do a ResolveIndicies for the later inline projection. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
limit schema will not always like what its children are, like its children are projection, and it may have been eliminated
shallowColSlice := make([]*expression.Column, p.schema.Len()) | ||
copy(shallowColSlice, p.schema.Columns) | ||
p.schema = expression.NewSchema(shallowColSlice...) | ||
for i := 0; i < colsNeedResolving; i++ { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
the only thing we can trust is the column.Index
while there will be some same cols ref to single one problems
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
see #45831
What problem does this PR solve?
Issue Number: close #45112
Problem Summary:
What is changed and how it works?
The Physical Projection Elimination permits the case that the parent plan has a column which cannot be found by the child(ren).
The only thing we can rely on during the execution phase is the
Column.Index
.Check List
Tests
Side effects
Documentation
Release note
Please refer to Release Notes Language Style Guide to write a quality release note.