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: add upsert checks for unique constraints #58301

Merged
merged 1 commit into from
Dec 28, 2020

Conversation

rytaft
Copy link
Collaborator

@rytaft rytaft commented Dec 28, 2020

This commit adds checks for unique constraints when planning upserts
in the optimizer. This commit also includes a number of execbuilder
and logic tests for upsert uniqueness checks.

There is no release note since these checks are still gated behind the
experimental_enable_unique_without_index_constraints session variable.

Informs #41535

Release note: None

This commit adds checks for unique constraints when planning upserts
in the optimizer. This commit also includes a number of execbuilder
and logic tests for upsert uniqueness checks.

There is no release note since these checks are still gated behind the
experimental_enable_unique_without_index_constraints session variable.

Informs cockroachdb#41535

Release note: None
@rytaft rytaft requested review from mgartner, RaduBerinde and a team December 28, 2020 14:33
@rytaft rytaft requested a review from a team as a code owner December 28, 2020 14:33
@cockroach-teamcity
Copy link
Member

This change is Reviewable

Copy link
Member

@RaduBerinde RaduBerinde left a comment

Choose a reason for hiding this comment

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

:lgtm: Nice tests!

Reviewable status: :shipit: complete! 1 of 0 LGTMs obtained (waiting on @mgartner and @RaduBerinde)

@rytaft
Copy link
Collaborator Author

rytaft commented Dec 28, 2020

TFTR!

bors r+

@craig
Copy link
Contributor

craig bot commented Dec 28, 2020

Build succeeded:

@craig craig bot merged commit 54fbd99 into cockroachdb:master Dec 28, 2020
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.

3 participants