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


##########
sdks/java/io/google-cloud-platform/src/main/java/org/apache/beam/sdk/io/gcp/spanner/changestreams/dao/ChangeStreamResultSet.java:
##########
@@ -128,6 +129,24 @@ public boolean isProtoChangeRecord() {
         && resultSet.getColumnType(0).getCode() == 
com.google.cloud.spanner.Type.Code.PROTO;
   }
 
+  public com.google.spanner.v1.ChangeStreamRecord 
getProtoChangeStreamRecordFromBytes() {
+    recordReadAt = Timestamp.now();
+    // Use getBytes(0) for the BYTES column returned by read_proto_bytes_ TVF
+    byte[] protoBytes = resultSet.getBytes(0).toByteArray();

Review Comment:
   Updated. 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