From dd3e9a0fe4846edcab9501b71c3d9e0fa24ed75b Mon Sep 17 00:00:00 2001 From: Gaurav Purohit Date: Fri, 18 Aug 2023 12:48:26 +0530 Subject: [PATCH] feat: Adding support for databoost (#2505) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * feat: Adding support for databoost Enable databoost feature for all customers and removing the beta api annotation. * Enabling databoost test * Update ITBatchReadTest.java * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md * docs fix * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md --------- Co-authored-by: Owl Bot Co-authored-by: Rajat Bhatta <93644539+rajatbhatta@users.noreply.github.com> --- .../src/main/java/com/google/cloud/spanner/Options.java | 7 ++----- .../java/com/google/cloud/spanner/it/ITBatchReadTest.java | 4 ---- 2 files changed, 2 insertions(+), 9 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 0d804bfd933..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 @@ -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; @@ -156,11 +155,9 @@ public static ListOption pageSize(int pageSize) { } /** - * If this is for a partitioned read and 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). + * If this is for PartitionedRead or PartitionedQuery and this field is set to `true`, the request + * will be executed via Spanner independent compute resources. */ - @BetaApi public static DataBoostQueryOption dataBoostEnabled(Boolean dataBoostEnabled) { return new DataBoostQueryOption(dataBoostEnabled); } 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 11be7df0430..6598a3dca76 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 @@ -258,8 +258,6 @@ public void readUsingIndex() { @Test public void dataBoostRead() { - // TODO: Remove the following check during GA - assumeFalse("DataBoost feature is not yet generally available", true); assumeFalse("Emulator does not support data boost read", isUsingEmulator()); BitSet seenRows = new BitSet(numRows); @@ -314,8 +312,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();