thiagotnunes commented on a change in pull request #16844:
URL: https://github.com/apache/beam/pull/16844#discussion_r815425215



##########
File path: 
sdks/java/io/google-cloud-platform/src/main/java/org/apache/beam/sdk/io/gcp/spanner/SpannerIO.java
##########
@@ -430,14 +433,10 @@ public static Write write() {
   public static ReadChangeStream readChangeStream() {
     return new AutoValue_SpannerIO_ReadChangeStream.Builder()
         .setSpannerConfig(SpannerConfig.create())

Review comment:
       Extracts defaults to constants

##########
File path: 
buildSrc/src/main/groovy/org/apache/beam/gradle/BeamModulePlugin.groovy
##########
@@ -706,6 +706,7 @@ class BeamModulePlugin implements Plugin<Project> {
         woodstox_core_asl                           : 
"org.codehaus.woodstox:woodstox-core-asl:4.4.1",
         zstd_jni                                    : 
"com.github.luben:zstd-jni:1.5.2-1",
         quickcheck_core                             : 
"com.pholser:junit-quickcheck-core:$quickcheck_version",
+        quickcheck_generators                       : 
"com.pholser:junit-quickcheck-generators:$quickcheck_version",

Review comment:
       Adds quickcheck generators for property based testing

##########
File path: 
sdks/java/io/google-cloud-platform/src/main/java/org/apache/beam/sdk/io/gcp/spanner/changestreams/model/PartitionMetadata.java
##########
@@ -66,8 +66,6 @@
   @AvroEncode(using = TimestampEncoding.class)
   private Timestamp startTimestamp;
 
-  @Nullable
-  @org.apache.avro.reflect.Nullable

Review comment:
       Not nullable anymore, as we always provide a default (if null was given 
as an input it this variable = `Timestamp.MAX - 1ns`)

##########
File path: 
sdks/java/io/google-cloud-platform/src/main/java/org/apache/beam/sdk/io/gcp/spanner/SpannerIO.java
##########
@@ -1474,6 +1473,13 @@ public ReadChangeStream 
withTraceSampleProbability(Double probability) {
       checkArgument(
           getInclusiveStartAt() != null,
           "SpannerIO.readChangeStream() requires the start time to be set.");

Review comment:
       Checks if the end timestamp is within bounds `Timestamp.MAX - 1ns`




-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to