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


##########
sdks/java/io/debezium/src/main/java/org/apache/beam/io/debezium/SourceRecordJson.java:
##########
@@ -119,11 +126,19 @@ public class SourceRecordJson {
   private static final String SCHEMA_TRANSACTION_METADATA_EVENT_KEY_NAME =
       "io.debezium.connector.common.TransactionMetadataKey";
 
+  /** Key schema names of the schema change events emitted by the supported 
connectors. */
+  private static final Set<String> SCHEMA_CHANGE_EVENT_KEY_NAMES =
+      ImmutableSet.of(
+          "io.debezium.connector.mysql.SchemaChangeKey",
+          "io.debezium.connector.oracle.SchemaChangeKey",
+          "io.debezium.connector.sqlserver.SchemaChangeKey");

Review Comment:
   That's a good point; I will support Db2 schema change events and adjust the 
logic for `isSchemaChangeEvent` as follows:
   
   ```java
   private static boolean isSchemaChangeEvent(@Nullable Schema keySchema) {
     return SchemaFactory.get().isSchemaChangeSchema(keySchema);
   }
   ```



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