chenxuesdu commented on code in PR #36667:
URL: https://github.com/apache/beam/pull/36667#discussion_r2632434843


##########
sdks/java/io/google-cloud-platform/src/main/java/org/apache/beam/sdk/io/gcp/spanner/changestreams/dao/ChangeStreamDao.java:
##########
@@ -91,8 +107,20 @@ public ChangeStreamResultSet changeStreamQuery(
     String query = "";
     Statement statement;
     if (this.isPostgres()) {
-      query =
-          "SELECT * FROM \"spanner\".\"read_json_" + changeStreamName + 
"\"($1, $2, $3, $4, null)";
+      // Ensure we have determined whether change stream uses mutable key range
+      boolean isMutable = isMutableKeyRangeChangeStream();

Review Comment:
   Moved the logic to SpannerIO so it will only be executed once when connector 
starts. Please take a look. Thanks.



-- 
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