Skip to content

Spanner: add DML / PDML support#6048

Merged
tseaver merged 12 commits intomasterfrom
spanner-dml-prep_for_public
Oct 2, 2018
Merged

Spanner: add DML / PDML support#6048
tseaver merged 12 commits intomasterfrom
spanner-dml-prep_for_public

Conversation

@tseaver
Copy link
Copy Markdown
Contributor

@tseaver tseaver commented Sep 21, 2018

/cc @snehashah16

DML / PDML system tests will fail until the production endpoint support is rolled out. Do not merge until then.

@tseaver tseaver added do not merge Indicates a pull request not ready for merge, due to either quality or timing. api: spanner Issues related to the Spanner API. labels Sep 21, 2018
@tseaver tseaver requested a review from crwilcox September 21, 2018 16:26
@tseaver tseaver requested a review from theacodes as a code owner September 21, 2018 16:26
@googlebot googlebot added the cla: yes This human has signed the Contributor License Agreement. label Sep 21, 2018
@tseaver tseaver added release blocking Required feature/issue must be fixed prior to next release. status: blocked Resolving the issue is dependent on other work. and removed release blocking Required feature/issue must be fixed prior to next release. labels Sep 25, 2018
@tseaver tseaver force-pushed the spanner-dml-prep_for_public branch 2 times, most recently from 05dc94b to 1d3d8fb Compare September 28, 2018 21:57
tseaver added 12 commits October 2, 2018 11:19
With DML statements, there may be no explicit mutations tracked on
the client side.
Switch the still-failing system test to use it.
Assert that stats have appropriate row count.
Required for executing multiple DML statements w/in context of one
transaction.

Update system tests for DML to exercise this (they previously passed only
one statement).
- Rollback transaction after performing DML.
- Mix DML and batch-style mutations in a single commit.
Also, drop the 'partition' argument to it:  not appropriate to the
usecase.
* Add 'Datatbase.execute_partitioned_dml' method.

* Add system test which exercises PDML. both for UPDATE (with parameter)
  and DELETE.
@tseaver tseaver force-pushed the spanner-dml-prep_for_public branch from 1d3d8fb to d8a714d Compare October 2, 2018 15:19
@tseaver tseaver removed do not merge Indicates a pull request not ready for merge, due to either quality or timing. status: blocked Resolving the issue is dependent on other work. labels Oct 2, 2018
@tseaver tseaver merged commit ecc3845 into master Oct 2, 2018
@tseaver tseaver deleted the spanner-dml-prep_for_public branch October 2, 2018 15:35
tseaver added a commit that referenced this pull request Oct 3, 2018
@tseaver tseaver restored the spanner-dml-prep_for_public branch October 3, 2018 02:56
tseaver added a commit that referenced this pull request Oct 3, 2018
PR #6048 merged too soon.

Reverts #6048.
tseaver added a commit that referenced this pull request Oct 3, 2018
PR #6048 merged too soon.

Reverts #6048.
@tseaver tseaver deleted the spanner-dml-prep_for_public branch October 8, 2018 15:20
parthea pushed a commit that referenced this pull request Mar 9, 2026
- Add 'Transaction.execute_update' method.
- Add required integration test cases for non-partitioned DML:
  - Rollback transaction after performing DML.
  - Mix DML and batch-style mutations in a single commit.
- Add 'Datatbase.execute_partitioned_dml' method.
- Add system test which exercises PDML. both for UPDATE (with parameter)
  and DELETE.
parthea pushed a commit that referenced this pull request Mar 9, 2026
PR #6048 merged too soon.

Reverts #6048.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

api: spanner Issues related to the Spanner API. cla: yes This human has signed the Contributor License Agreement.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants