Skip to content

Commit

Permalink
feat: Adding support for databoost (#2505)
Browse files Browse the repository at this point in the history
* 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 <gcf-owl-bot[bot]@users.noreply.github.com>
Co-authored-by: Rajat Bhatta <93644539+rajatbhatta@users.noreply.github.com>
  • Loading branch information
3 people committed Aug 18, 2023
1 parent 134bf33 commit dd3e9a0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down Expand Up @@ -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();
Expand Down

0 comments on commit dd3e9a0

Please sign in to comment.