-
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
release-22.2: opt: copy ColSet in CreateLocalityOptimizedLookupJoinPrivateIncludingCols #88175
Conversation
…Cols `CreateLocalityOptimizedLookupJoinPrivateIncludingCols` was mutating a `opt.ColSet` field of another `LookupJoinPrivate` because it was calling `ColSet.UnionWith` without copying the `ColSet` first. This commit fixes the bug. Fixes #88126 Release note: None
629fb1c
to
2e731c7
Compare
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 1 of 1 files at r1, all commit messages.
Reviewable status: complete! 1 of 0 LGTMs obtained (waiting on @msirek and @rytaft)
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 1 of 1 files at r1, all commit messages.
Reviewable status: complete! 2 of 0 LGTMs obtained (waiting on @msirek)
Backport 1/1 commits from #88129 on behalf of @mgartner.
/cc @cockroachdb/release
CreateLocalityOptimizedLookupJoinPrivateIncludingCols
was mutating aopt.ColSet
field of anotherLookupJoinPrivate
because it was callingColSet.UnionWith
without copying theColSet
first. This commit fixesthe bug.
Fixes #88126
Release note: None
Release justification: This is a critical fix for a correctness bug.