yuxiqian commented on code in PR #3932: URL: https://github.com/apache/flink-cdc/pull/3932#discussion_r1981288806
########## flink-cdc-runtime/src/main/java/org/apache/flink/cdc/runtime/operators/transform/PreTransformOperator.java: ########## @@ -270,6 +273,24 @@ public void close() throws Exception { @Override public void processElement(StreamRecord<Event> element) throws Exception { Event event = element.getValue(); + if (event instanceof ChangeEvent) { Review Comment: If I understand correctly, after this change, MySQL source will always emit `CreateTableEvent` based on current tables' schema, before sending any `DataChangeEvent`s. As `event instanceof ChangeEvent` is `true`, we will emit a `CreateTableEvent` restored from `PreTransformOp`'s state. But the following `event instanceof CreateTableEvent` (L294) is also `true`. Are we accidentally emitting duplicate and inconsistent `CreateTableEvent`s to the downstream? -- 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