From e0353a2590690c853e85c8c66fe374aed79094c4 Mon Sep 17 00:00:00 2001 From: Gaurav Purohit Date: Tue, 20 Jun 2023 10:48:35 +0530 Subject: [PATCH 1/7] feat: Adding support for databoost Enable databoost feature for all customers and removing the beta api annotation. --- .../src/main/java/com/google/cloud/spanner/Options.java | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/google-cloud-spanner/src/main/java/com/google/cloud/spanner/Options.java b/google-cloud-spanner/src/main/java/com/google/cloud/spanner/Options.java index 9712b508d5f..4c00c99dc91 100644 --- a/google-cloud-spanner/src/main/java/com/google/cloud/spanner/Options.java +++ b/google-cloud-spanner/src/main/java/com/google/cloud/spanner/Options.java @@ -16,7 +16,6 @@ package com.google.cloud.spanner; -import com.google.api.core.BetaApi; import com.google.common.base.Preconditions; import com.google.spanner.v1.RequestOptions.Priority; import java.io.Serializable; @@ -157,10 +156,8 @@ public static ListOption pageSize(int pageSize) { /** * If this is for a partitioned read & query and this field is set to `true`, the request will be - * executed via Spanner independent compute resources. The method is available in Beta mode (and - * is not generally available now). + * executed via Spanner independent compute resources. */ - @BetaApi public static DataBoostQueryOption dataBoostEnabled(Boolean dataBoostEnabled) { return new DataBoostQueryOption(dataBoostEnabled); } From 08319fb1e4c5572b20a1ca9f1b07391864a53daf Mon Sep 17 00:00:00 2001 From: Gaurav Purohit Date: Fri, 23 Jun 2023 15:09:47 +0530 Subject: [PATCH 2/7] Enabling databoost test --- .../java/com/google/cloud/spanner/it/ITBatchReadTest.java | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/google-cloud-spanner/src/test/java/com/google/cloud/spanner/it/ITBatchReadTest.java b/google-cloud-spanner/src/test/java/com/google/cloud/spanner/it/ITBatchReadTest.java index 9a50a5ca7be..a25fde7b0fd 100644 --- a/google-cloud-spanner/src/test/java/com/google/cloud/spanner/it/ITBatchReadTest.java +++ b/google-cloud-spanner/src/test/java/com/google/cloud/spanner/it/ITBatchReadTest.java @@ -240,9 +240,7 @@ public void readUsingIndex() { } @Test - public void dataBoostRead() { - // TODO: Remove the following check during GA - assumeFalse("DataBoost feature is not yet generally available", true); + public void dataBoostRead() {e assumeFalse("Emulator does not support data boost read", isUsingEmulator()); BitSet seenRows = new BitSet(numRows); @@ -297,8 +295,6 @@ private PartitionOptions getRandomPartitionOptions() { @Test public void dataBoostQuery() { - // TODO: Remove the following check during GA - assumeFalse("DataBoost feature is not yet generally available", true); assumeFalse("Emulator does not support data boost query", isUsingEmulator()); BitSet seenRows = new BitSet(numRows); TimestampBound bound = getRandomBound(); From f56933dc33fce1699db85b1d3821ad5acec38ee8 Mon Sep 17 00:00:00 2001 From: Gaurav Purohit Date: Fri, 23 Jun 2023 15:17:31 +0530 Subject: [PATCH 3/7] Update ITBatchReadTest.java --- .../test/java/com/google/cloud/spanner/it/ITBatchReadTest.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/google-cloud-spanner/src/test/java/com/google/cloud/spanner/it/ITBatchReadTest.java b/google-cloud-spanner/src/test/java/com/google/cloud/spanner/it/ITBatchReadTest.java index a25fde7b0fd..89a4a76e862 100644 --- a/google-cloud-spanner/src/test/java/com/google/cloud/spanner/it/ITBatchReadTest.java +++ b/google-cloud-spanner/src/test/java/com/google/cloud/spanner/it/ITBatchReadTest.java @@ -240,7 +240,7 @@ public void readUsingIndex() { } @Test - public void dataBoostRead() {e + public void dataBoostRead() { assumeFalse("Emulator does not support data boost read", isUsingEmulator()); BitSet seenRows = new BitSet(numRows); From c645cca0b7caac244c396a5c2ea935fc27d56285 Mon Sep 17 00:00:00 2001 From: Owl Bot Date: Fri, 11 Aug 2023 04:08:14 +0000 Subject: [PATCH 4/7] =?UTF-8?q?=F0=9F=A6=89=20Updates=20from=20OwlBot=20po?= =?UTF-8?q?st-processor?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md --- README.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 3d15b34d829..8c508d3f93c 100644 --- a/README.md +++ b/README.md @@ -50,20 +50,20 @@ If you are using Maven without the BOM, add this to your dependencies: If you are using Gradle 5.x or later, add this to your dependencies: ```Groovy -implementation platform('com.google.cloud:libraries-bom:26.21.0') +implementation platform('com.google.cloud:libraries-bom:26.22.0') implementation 'com.google.cloud:google-cloud-spanner' ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-spanner:6.44.0' +implementation 'com.google.cloud:google-cloud-spanner:6.45.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-spanner" % "6.44.0" +libraryDependencies += "com.google.cloud" % "google-cloud-spanner" % "6.45.0" ``` @@ -430,7 +430,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/java-spanner/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-spanner.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-spanner/6.44.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-spanner/6.45.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles From a9815d2e63b071c1e286d936cb19c2450f8fb853 Mon Sep 17 00:00:00 2001 From: Rajat Bhatta <93644539+rajatbhatta@users.noreply.github.com> Date: Sat, 12 Aug 2023 00:07:12 +0530 Subject: [PATCH 5/7] docs fix --- .../src/main/java/com/google/cloud/spanner/Options.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/google-cloud-spanner/src/main/java/com/google/cloud/spanner/Options.java b/google-cloud-spanner/src/main/java/com/google/cloud/spanner/Options.java index 4c00c99dc91..554cc5b79af 100644 --- a/google-cloud-spanner/src/main/java/com/google/cloud/spanner/Options.java +++ b/google-cloud-spanner/src/main/java/com/google/cloud/spanner/Options.java @@ -155,7 +155,7 @@ public static ListOption pageSize(int pageSize) { } /** - * If this is for a partitioned read & query and this field is set to `true`, the request will be + * If this is for PartitionedRead or PartitionedQuery and this field is set to `true`, the request will be * executed via Spanner independent compute resources. */ public static DataBoostQueryOption dataBoostEnabled(Boolean dataBoostEnabled) { From 82d1497534951e908002b36b478800ea1b021842 Mon Sep 17 00:00:00 2001 From: Owl Bot Date: Fri, 11 Aug 2023 18:39:57 +0000 Subject: [PATCH 6/7] =?UTF-8?q?=F0=9F=A6=89=20Updates=20from=20OwlBot=20po?= =?UTF-8?q?st-processor?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md --- .../src/main/java/com/google/cloud/spanner/Options.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/google-cloud-spanner/src/main/java/com/google/cloud/spanner/Options.java b/google-cloud-spanner/src/main/java/com/google/cloud/spanner/Options.java index 554cc5b79af..2bd35ec7853 100644 --- a/google-cloud-spanner/src/main/java/com/google/cloud/spanner/Options.java +++ b/google-cloud-spanner/src/main/java/com/google/cloud/spanner/Options.java @@ -155,8 +155,8 @@ public static ListOption pageSize(int pageSize) { } /** - * If this is for PartitionedRead or PartitionedQuery and this field is set to `true`, the request will be - * executed via Spanner independent compute resources. + * If this is for PartitionedRead or PartitionedQuery and this field is set to `true`, the request + * will be executed via Spanner independent compute resources. */ public static DataBoostQueryOption dataBoostEnabled(Boolean dataBoostEnabled) { return new DataBoostQueryOption(dataBoostEnabled); From f74ccbe03400e23c9983d80c7441b0e449137c7b Mon Sep 17 00:00:00 2001 From: Owl Bot Date: Thu, 17 Aug 2023 10:36:10 +0000 Subject: [PATCH 7/7] =?UTF-8?q?=F0=9F=A6=89=20Updates=20from=20OwlBot=20po?= =?UTF-8?q?st-processor?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md --- README.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 88877d5aa4f..0b4e29261f8 100644 --- a/README.md +++ b/README.md @@ -57,13 +57,13 @@ implementation 'com.google.cloud:google-cloud-spanner' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-spanner:6.45.1' +implementation 'com.google.cloud:google-cloud-spanner:6.45.2' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-spanner" % "6.45.1" +libraryDependencies += "com.google.cloud" % "google-cloud-spanner" % "6.45.2" ``` @@ -430,7 +430,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/java-spanner/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-spanner.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-spanner/6.45.1 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-spanner/6.45.2 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles