You are viewing a plain text version of this content. The canonical link for it is here.
Posted to github@beam.apache.org by "nielm (via GitHub)" <gi...@apache.org> on 2023/04/01 06:22:32 UTC

[GitHub] [beam] nielm commented on a diff in pull request #26007: Adding support for Spanner Databoost in SpannerIO

nielm commented on code in PR #26007:
URL: https://github.com/apache/beam/pull/26007#discussion_r1155065248


##########
sdks/java/io/google-cloud-platform/src/main/java/org/apache/beam/sdk/io/gcp/spanner/BatchSpannerRead.java:
##########
@@ -138,6 +138,9 @@ public void processElement(ProcessContext c) throws Exception {
       BatchReadOnlyTransaction batchTx =
           spannerAccessor.getBatchClient().batchReadOnlyTransaction(tx.transactionId());
       ReadOperation op = c.element();
+      boolean dataBoostEnabled =
+          config.getDataBoostEnabled() != null
+              && Boolean.TRUE.equals(config.getDataBoostEnabled().get());

Review Comment:
   There is no need for the `Boolean.TRUE.equals()`



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: github-unsubscribe@beam.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org