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/copy: fix planning for vectorized COPY with nested renderNodes #111284
Conversation
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
Instead of names like TestDataDriven/copy_test#0 we can now use names like: TestDataDriven/copy_test/vectorize=off/atomic=on/fastPath=on/copy_from Epic: none 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.
Reviewed 3 of 3 files at r1, 1 of 1 files at r2, all commit messages.
Reviewable status: complete! 1 of 0 LGTMs obtained (waiting on @cucaroach)
bors r+ |
Build succeeded: |
Encountered an error creating backports. Some common things that can go wrong:
You might need to create your backport manually using the backport tool. error creating merge commit from 872ceb9 to blathers/backport-release-23.1-111284: POST https://api.github.com/repos/cockroachdb/cockroach/merges: 409 Merge conflict [] you may need to manually resolve merge conflicts with the backport tool. Backport to branch 23.1.x failed. See errors above. 🦉 Hoot! I am a Blathers, a bot for CockroachDB. My owner is dev-inf. |
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