zhongqishang commented on code in PR #3226:
URL: https://github.com/apache/flink-cdc/pull/3226#discussion_r1581741205
##########
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:
@yuxiqian Thanks for your review.
> Is it safe to deserialize here if `op` isn't any known following one?
IMO, the currently deserialized fields and order are consistent with those
during serialization. Even if an unknown op operation occurs, deserialization
will not cause an exception.
--
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]