ilyasahsan123 commented on code in PR #41331:
URL: https://github.com/apache/beam/pull/41331#discussion_r4682716372


##########
sdks/java/io/debezium/src/main/java/org/apache/beam/io/debezium/SourceRecordJson.java:
##########
@@ -152,10 +167,17 @@ public SourceRecordJson(@Nullable SourceRecord 
sourceRecord, boolean fullMetadat
     if (this.value == null) {
       this.event = new Event(null, null, null, null);
       this.transactionEvent = null;
+      this.changeSchemaEvent = null;
       this.metadataExtras = Collections.emptyMap();
     } else if (isTransactionMetadataEvent(sourceRecord.keySchema())) {
       this.event = null;
       this.transactionEvent = this.loadTransactionEvent();
+      this.changeSchemaEvent = null;
+      this.metadataExtras = Collections.emptyMap();
+    } else if (isSchemaChangeEventKeyName(sourceRecord.keySchema())) {

Review Comment:
   You make a valid point, and I will address your concern.



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