davidm-db commented on code in PR #47404: URL: https://github.com/apache/spark/pull/47404#discussion_r1683079758
########## common/utils/src/main/resources/error/error-conditions.json: ########## @@ -2941,6 +2941,23 @@ ], "sqlState" : "22029" }, + "INVALID_VARIABLE_DECLARATION": { + "message" : [ + "Invalid variable declaration." + ], + "subClass" : { + "NOT_ALLOWED_IN_SCOPE" : { + "message": [ + "Variable declaration is not allowed in this scope." + ] + }, + "ONLY_AT_BEGINNING" : { + "message": [ + "Variable declaration is only possible at the beginning of the BEGIN END compound." Review Comment: nit: you can remove BEGIN END part from the message, compound is literally defined by BEGIN and END. -- 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