-
Notifications
You must be signed in to change notification settings - Fork 3.8k
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
sql: add final projection during physical plan's finalization #50973
Conversation
c105ab5
to
836b50b
Compare
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.
Reviewable status: complete! 1 of 0 LGTMs obtained (waiting on @yuzefovich)
pkg/sql/distsql_physical_planner.go, line 3394 at r1 (raw file):
// Add a final projection so that DistSQLReceiver gets the rows of the // desired schema. Note that we don't need to update PlanToStreamColMap // since it is no longer necessary.
[nit] maybe set PlanToStreamColMap
to nil
just in case
05dbb26
to
476380a
Compare
This commit updates the contract between `DistSQLReceiver` and `FinalizePlan` method so that the latter adds a projection which allows the DistSQL receiver to get the rows with the desired schema. This shouldn't have any effect on the performance, but it seems like a cleaner approach. Release note: None
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.
I had to make several changes to fix a few things, so I'd appreciate another quick look before merging this.
Reviewable status: complete! 0 of 0 LGTMs obtained (and 1 stale) (waiting on @pbardea)
pkg/sql/distsql_physical_planner.go, line 3394 at r1 (raw file):
Previously, RaduBerinde wrote…
[nit] maybe set
PlanToStreamColMap
tonil
just in case
Done.
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.
Reviewable status: complete! 1 of 0 LGTMs obtained (waiting on @pbardea)
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.
Build succeeded |
This commit updates the contract between
DistSQLReceiver
andFinalizePlan
method so that the latter adds a projection which allowsthe DistSQL receiver to get the rows with the desired schema. This
shouldn't have any effect on the performance, but it seems like a
cleaner approach.
Release note: None