Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Adding support for databoost #2505

Merged
merged 9 commits into from
Aug 18, 2023
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 @@ -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) {
rajatbhatta marked this conversation as resolved.
Show resolved Hide resolved
return new DataBoostQueryOption(dataBoostEnabled);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -241,8 +241,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 @@ -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();
Expand Down