Skip to content
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

opt: copy ColSet in CreateLocalityOptimizedLookupJoinPrivateIncludingCols #88129

Merged
merged 1 commit into from
Sep 19, 2022

Conversation

mgartner
Copy link
Collaborator

@mgartner mgartner commented Sep 19, 2022

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

@mgartner mgartner requested review from rytaft and msirek September 19, 2022 14:16
@mgartner mgartner requested a review from a team as a code owner September 19, 2022 14:16
@cockroach-teamcity
Copy link
Member

This change is Reviewable

@mgartner
Copy link
Collaborator Author

mgartner commented Sep 19, 2022

I believe this bug is present all the way back to 21.2—but I'm not sure why we're just catching it now.

This bug is only present on master and release-22.2.

…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 cockroachdb#88126

Release note: None
@mgartner mgartner force-pushed the 88126-fix-los-colset-copy branch from ded19fe to 67f18b3 Compare September 19, 2022 14:39
@mgartner mgartner changed the title opt: correctly copy ColSets in CreateLocalityOptimizedLookupJoinPrivate opt: copy ColSet in CreateLocalityOptimizedLookupJoinPrivateIncludingCols Sep 19, 2022
@mgartner mgartner requested a review from michae2 September 19, 2022 18:46
Copy link
Collaborator

@michae2 michae2 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

:lgtm:

Reviewed 1 of 1 files at r1, all commit messages.
Reviewable status: :shipit: complete! 1 of 0 LGTMs obtained (waiting on @msirek and @rytaft)

@mgartner
Copy link
Collaborator Author

TFTR!

bors r+

@craig
Copy link
Contributor

craig bot commented Sep 19, 2022

Build succeeded:

@craig craig bot merged commit 7bde044 into cockroachdb:master Sep 19, 2022
@mgartner mgartner deleted the 88126-fix-los-colset-copy branch September 19, 2022 21:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

opt: tests failing with fast_int_set_large build tag
3 participants