LuciferYang commented on code in PR #38448: URL: https://github.com/apache/spark/pull/38448#discussion_r1009499482
########## sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/parser/AstBuilder.scala: ########## @@ -2397,7 +2397,11 @@ class AstBuilder extends SqlBaseParserBaseVisitor[AnyRef] with SQLConfHelper wit s"contains illegal character for hexBinary: $padding$value"); } case other => - throw QueryParsingErrors.literalValueTypeUnsupportedError(other, ctx) + throw QueryParsingErrors.literalValueTypeUnsupportedError( + unsupportedType = other, + supportedTypes = + Seq("DATE", "TIMESTAMP_NTZ", "TIMESTAMP_LTZ", "TIMESTAMP", "INTERVAL", "X"), Review Comment: Agree with you, `"X hexadecimal"` looks a little strange -- 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