anchovYu commented on code in PR #43612: URL: https://github.com/apache/spark/pull/43612#discussion_r1379276234
########## common/utils/src/main/resources/error/error-classes.json: ########## @@ -1866,6 +1866,29 @@ }, "sqlState" : "42K0E" }, + "INVALID_LITERAL_VALUE_SQL_STRING_FOR_DESERIALIZATION" : { + "message" : [ + "The given Literal value SQL string <sqlStr> (dataType: <dataType>) is invalid and can't be deserialized." + ], + "subClass" : { + "ANALYSIS_FAILURE" : { + "message" : [ + "It cannot be analyzed successfully." + ] + }, + "NOT_EXPECTED_LITERAL_TYPE" : { + "message" : [ + "The deserialized expression <expr> is not an Literal with data type <dataType>." + ] + }, + "PARSE_FAILURE" : { + "message" : [ + "It cannot be parsed successfully." + ] + } + }, + "sqlState" : "42894" Review Comment: It's a bit tricky that in this PR it's a helper function that accepts any string. It could be a user error that user passes in a random string. -- 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