From c6cc0e86c69a70fb6545acf2769d14016fe47d71 Mon Sep 17 00:00:00 2001 From: Drew Stevens <43360753+googledrew@users.noreply.github.com> Date: Wed, 13 May 2026 13:03:19 -0700 Subject: [PATCH] Update SpannerIO.java - comment documentation Spanner supports 80,000 mutations per transacton https://docs.cloud.google.com/spanner/quotas#limits_for_creating_reading_updating_and_deleting_data:~:text=Mutations%20per%20commit Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com> --- .../org/apache/beam/sdk/io/gcp/spanner/SpannerIO.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/sdks/java/io/google-cloud-platform/src/main/java/org/apache/beam/sdk/io/gcp/spanner/SpannerIO.java b/sdks/java/io/google-cloud-platform/src/main/java/org/apache/beam/sdk/io/gcp/spanner/SpannerIO.java index cccfced08218..d271e763aac5 100644 --- a/sdks/java/io/google-cloud-platform/src/main/java/org/apache/beam/sdk/io/gcp/spanner/SpannerIO.java +++ b/sdks/java/io/google-cloud-platform/src/main/java/org/apache/beam/sdk/io/gcp/spanner/SpannerIO.java @@ -311,10 +311,10 @@ * *

Note that the maximum - * size of a single transaction is 20,000 mutated cells - including cells in indexes. If you - * have a large number of indexes and are getting exceptions with message: INVALID_ARGUMENT: The - * transaction contains too many mutations you will need to specify a smaller number of {@code - * MaxNumMutations}. + * number of mutations in a single transaction is 80,000 mutations - including mutations in + * indexes. If you have a large number of indexes and are getting exceptions with message: + * INVALID_ARGUMENT: The transaction contains too many mutations you will need to specify a + * smaller number of {@code MaxNumMutations}. * *

The batches written are obtained from by grouping enough {@link Mutation Mutations} from the * Bundle provided by Beam to form several batches. This group of {@link Mutation Mutations} is then