entong commented on code in PR #37916: URL: https://github.com/apache/spark/pull/37916#discussion_r976770267
########## sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/parser/AstBuilder.scala: ########## @@ -2418,7 +2421,10 @@ class AstBuilder extends SqlBaseParserBaseVisitor[AnyRef] with SQLConfHelper wit Literal(BigDecimal(raw).underlying()) } catch { case e: AnalysisException => - throw new ParseException(e.message, ctx) + throw new ParseException( + errorClass = "_LEGACY_ERROR_TEMP_0061", + messageParameters = Map("msg" -> e.getMessage), + ctx) Review Comment: What should we do for re-throws? @MaxGekk @cloud-fan -- 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