TyrantLucifer commented on code in PR #3572:
URL:
https://github.com/apache/incubator-seatunnel/pull/3572#discussion_r1031981409
##########
seatunnel-formats/seatunnel-format-json/src/main/java/org/apache/seatunnel/format/json/JsonDeserializationSchema.java:
##########
@@ -70,7 +71,7 @@ public JsonDeserializationSchema(boolean failOnMissingField,
boolean ignoreParseErrors,
SeaTunnelRowType rowType) {
if (ignoreParseErrors && failOnMissingField) {
- throw new IllegalArgumentException(
+ throw new
SeaTunnelRuntimeException(CommonErrorCode.ILLEGAL_ARGUMENT,
Review Comment:
UNSOPPORTED_OPERATION is better.
--
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]