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
release-23.1: sql/copy: fix planning for vectorized COPY with nested renderNodes #111412
release-23.1: sql/copy: fix planning for vectorized COPY with nested renderNodes #111412
Conversation
Thanks for opening a backport. Please check the backport criteria before merging:
If some of the basic criteria cannot be satisfied, ensure that the exceptional criteria are satisfied within.
Add a brief release justification to the body of your PR to justify this backport. Some other things to consider:
|
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.
Reviewed 3 of 3 files at r1, all commit messages.
Reviewable status: complete! 0 of 0 LGTMs obtained (waiting on @rharding6373)
A COPY insert statement can produce a plan with zero or more renderNodes and we were only allowing zero or one. An example of multiple render nodes is a table with a hash shared primary key. Fixes: cockroachdb#104662 Release note (sql change): Vectorized COPY FROM support didn't properly handle schemas hash sharded primary keys. Epic: none Release justification: fix for regression in COPY with hash sharded tables.
f1ded3f
to
6f869aa
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 @cucaroach)
Backport 1/2 commits from #111284.
/cc @cockroachdb/release
A COPY insert statement can produce a plan with zero or more renderNodes
and we were only allowing zero or one. An example of multiple render
nodes is a table with a hash shared primary key.
Fixes: #104662
Release note (sql change): Vectorized COPY FROM support didn't properly
handle schemas hash sharded primary keys.
Epic: none
Release justification: fix for regression in COPY with hash sharded tables.