changliiu commented on code in PR #35042: URL: https://github.com/apache/beam/pull/35042#discussion_r2145524206
########## sdks/java/io/google-cloud-platform/src/test/java/org/apache/beam/sdk/io/gcp/spanner/changestreams/SpannerChangeStreamErrorTest.java: ########## @@ -460,19 +460,27 @@ private void mockGetPartitionsAfter(Timestamp timestamp, ResultSet getPartitionR } private void mockGetWatermark(Timestamp watermark) { + final String minWatermark = "min_watermark"; + // The query needs to sync with getUnfinishedMinWatermark() in PartitionMetadataDao file. Statement watermarkStatement = Statement.newBuilder( - "SELECT Watermark FROM my-metadata-table WHERE State != @state ORDER BY Watermark ASC LIMIT 1") + "SELECT min(Watermark) as " Review Comment: done -- 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-unsubscr...@beam.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org