Skip to content

opt: ON UPDATE cascades for Upsert#49804

Merged
craig[bot] merged 2 commits intocockroachdb:masterfrom
RaduBerinde:on-update-upsert
Jun 4, 2020
Merged

opt: ON UPDATE cascades for Upsert#49804
craig[bot] merged 2 commits intocockroachdb:masterfrom
RaduBerinde:on-update-upsert

Conversation

@RaduBerinde
Copy link
Copy Markdown
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
Copy Markdown
Member

This change is Reviewable

Copy link
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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
Copy Markdown
Member Author

bors r+

@craig
Copy link
Copy Markdown
Contributor

craig bot commented Jun 4, 2020

Timed out

@RaduBerinde
Copy link
Copy Markdown
Member Author

bors r+

@craig
Copy link
Copy Markdown
Contributor

craig bot commented Jun 4, 2020

Merge conflict (retrying...)

@craig
Copy link
Copy Markdown
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