lvyanquan commented on code in PR #3668:
URL: https://github.com/apache/flink-cdc/pull/3668#discussion_r1904882691


##########
flink-cdc-connect/flink-cdc-source-connectors/flink-connector-mysql-cdc/src/main/java/org/apache/flink/cdc/connectors/mysql/source/utils/RecordUtils.java:
##########
@@ -384,6 +390,40 @@ public static TableId getTableId(SourceRecord dataRecord) {
         return new TableId(dbName, null, tableName);
     }
 
+    public static SourceRecord setTableId(
+            SourceRecord dataRecord, TableId originalTableId, TableId tableId) 
{

Review Comment:
   Can we reuse and modify the tableId here?
   
https://github.com/apache/flink-cdc/blob/ddb5f00df5bab21e8c91e4a31574d446d8b7a3f7/flink-cdc-connect/flink-cdc-source-connectors/flink-connector-mysql-cdc/src/main/java/io/debezium/connector/mysql/MySqlStreamingChangeEventSource.java#L664-L667.
   
   And we can use 
   ```
   
schemaChangeEvents.get(i).getType().equals(SchemaChangeEvent.SchemaChangeEventType.ALTER)
   ```
   to judge the type of raw DDL.



-- 
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: issues-unsubscr...@flink.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to