-
Notifications
You must be signed in to change notification settings - Fork 3.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
sql: bugfix for planning of wrapped values nodes #37164
Conversation
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.
[nit] s/show_stats/show_zone_config in the commit message (I won't be modifying show_stats, it was just for the reproing).
Reviewable status:
complete! 1 of 0 LGTMs obtained (waiting on @jordanlewis and @RaduBerinde)
pkg/sql/distsql_physical_planner.go, line 315 at r1 (raw file):
case *unionNode: case *valuesNode: if !n.specifiedInQuery || planCtx.isLocal || planCtx.noEvalSubqueries {
[nit] Move this block outside of the other cases which are all the same. Also remove the else
, golint complains.
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.
Verified that the fix works with my show_zone_config change.
Reviewable status:
complete! 1 of 0 LGTMs obtained (waiting on @jordanlewis and @RaduBerinde)
Previously, there could be a runtime issue if a locally-planned valuesNode produced omitted columns, because there was a mismatch in the code that determined whether nodes had to be wrapped versus the code that produced wrapped nodes. It's hard to write a test for this because there was no way to get this problem before. The upcoming change to show_zone_config will exercise and test this change. Release note: None
0a4f50b
to
47616a6
Compare
ccache flake. TFTR! bors r+ |
37164: sql: bugfix for planning of wrapped values nodes r=jordanlewis a=jordanlewis Previously, there could be a runtime issue if a locally-planned valuesNode produced omitted columns, because there was a mismatch in the code that determined whether nodes had to be wrapped versus the code that produced wrapped nodes. It's hard to write a test for this because there was no way to get this problem before. The upcoming change to show_stats will exercise and test this change. Fixes #37146. Release note: None Co-authored-by: Jordan Lewis <[email protected]>
Build succeeded |
Previously, there could be a runtime issue if a locally-planned
valuesNode produced omitted columns, because there was a mismatch in the
code that determined whether nodes had to be wrapped versus the code
that produced wrapped nodes.
It's hard to write a test for this because there was no way to get this
problem before. The upcoming change to show_stats will exercise and test
this change.
Fixes #37146.
Release note: None