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: ON UPDATE cascades for Upsert #49804

Merged
merged 2 commits into from
Jun 4, 2020

Conversation

RaduBerinde
Copy link
Member

This change implements ON UPDATE actions for Upsert operations. The existing
machinery for Update can be used without modification.

Release note: None

@RaduBerinde RaduBerinde requested a review from rytaft June 2, 2020 16:58
@RaduBerinde RaduBerinde requested a review from a team as a code owner June 2, 2020 16:58
@cockroach-teamcity
Copy link
Member

This change is Reviewable

Copy link
Collaborator

@rytaft rytaft 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 8 of 8 files at r1.
Reviewable status: :shipit: complete! 1 of 0 LGTMs obtained (waiting on @RaduBerinde)


pkg/sql/logictest/testdata/logic_test/cascade, line 3910 at r1 (raw file):


statement ok
UPSERT INTO parent VALUES (1, 1)

Consider adding a comment to explain what this is testing

Making some updates that were made only to the `cascade` version.

Release note: None
This change implements ON UPDATE actions for Upsert operations. The existing
machinery for Update can be used without modification.

Release note: None
Copy link
Member Author

@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.

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


pkg/sql/logictest/testdata/logic_test/cascade, line 3910 at r1 (raw file):

Previously, rytaft (Rebecca Taft) wrote…

Consider adding a comment to explain what this is testing

Done. I also added a couple of more tests and added (in a separate commit) some changes that were made only to the cascade file.

Copy link
Collaborator

@rytaft rytaft 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 8 of 8 files at r2, 8 of 8 files at r3.
Reviewable status: :shipit: complete! 1 of 0 LGTMs obtained

@RaduBerinde
Copy link
Member Author

bors r+

@craig
Copy link
Contributor

craig bot commented Jun 4, 2020

Timed out

@RaduBerinde
Copy link
Member Author

bors r+

@craig
Copy link
Contributor

craig bot commented Jun 4, 2020

Merge conflict (retrying...)

@craig
Copy link
Contributor

craig bot commented Jun 4, 2020

Build succeeded

@craig craig bot merged commit 82f172a into cockroachdb:master Jun 4, 2020
@RaduBerinde RaduBerinde deleted the on-update-upsert branch June 6, 2020 18:19
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