CheneyYin commented on code in PR #5948:
URL: https://github.com/apache/seatunnel/pull/5948#discussion_r1418845860


##########
seatunnel-formats/seatunnel-format-json/src/main/java/org/apache/seatunnel/format/json/debezium/DebeziumJsonDeserializationSchema.java:
##########
@@ -93,8 +96,7 @@ public void deserialize(byte[] message, 
Collector<SeaTunnelRow> out) throws IOEx
             } else if (OP_UPDATE.equals(op)) {
                 SeaTunnelRow before = convertJsonNode(payload.get("before"));
                 if (before == null) {
-                    throw new SeaTunnelJsonFormatException(
-                            CommonErrorCodeDeprecated.UNSUPPORTED_DATA_TYPE,
+                    throw new IllegalStateException(

Review Comment:
   
https://github.com/apache/seatunnel/blob/87db4d1f8bfc6273a727d5ed77e642a4fbee5e72/seatunnel-common/src/main/java/org/apache/seatunnel/common/exception/CommonErrorCodeDeprecated.java#L34
   
   
https://github.com/apache/seatunnel/blob/87db4d1f8bfc6273a727d5ed77e642a4fbee5e72/seatunnel-common/src/main/java/org/apache/seatunnel/common/exception/CommonErrorCode.java#L24-L25
   
   I think this code block aims to verify if payload meet the specification of 
Debezium. It appears to be unrelated to 
   seatunnel data types and `UNSUPPORTED_DATA_TYPE`. 



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