cloud-fan commented on code in PR #42667: URL: https://github.com/apache/spark/pull/42667#discussion_r1306867310
########## sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/json/JacksonParser.scala: ########## @@ -420,17 +420,17 @@ class JacksonParser( case VALUE_STRING if parser.getTextLength < 1 && allowEmptyString => dataType match { case FloatType | DoubleType | TimestampType | DateType => - throw QueryExecutionErrors.emptyJsonFieldValueError(dataType) + throw EmptyJsonFieldValueException(dataType) case _ => null } case VALUE_STRING if parser.getTextLength < 1 => - throw QueryExecutionErrors.emptyJsonFieldValueError(dataType) + throw EmptyJsonFieldValueException(dataType) Review Comment: the control flow here is bit convoluted, when/where is `EmptyJsonFieldValueException` being handled first? -- 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: reviews-unsubscr...@spark.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org For additional commands, e-mail: reviews-h...@spark.apache.org