yuxiqian commented on code in PR #3226:
URL: https://github.com/apache/flink-cdc/pull/3226#discussion_r1580840112


##########
flink-cdc-runtime/src/main/java/org/apache/flink/cdc/runtime/serializer/event/DataChangeEventSerializer.java:
##########
@@ -76,28 +72,18 @@ public DataChangeEvent deserialize(DataInputView source) 
throws IOException {
         OperationType op = opSerializer.deserialize(source);
         TableId tableId = tableIdSerializer.deserialize(source);
 
+        RecordData before = recordDataSerializer.deserialize(source);
+        RecordData after = recordDataSerializer.deserialize(source);
+        Map<String, String> meta = metaSerializer.deserialize(source);

Review Comment:
   Is it safe to deserialize here if `op` isn't any known following one? Or we 
can validate op in advance.



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