davidm-db commented on code in PR #47404:
URL: https://github.com/apache/spark/pull/47404#discussion_r1683076936
##########
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:
missed to specify `sqlState` value at the end of
`INVALID_VARIABLE_DECLARATION` entry.
--
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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]