miland-db commented on code in PR #49427: URL: https://github.com/apache/spark/pull/49427#discussion_r1920365670
########## common/utils/src/main/resources/error/error-conditions.json: ########## @@ -2589,6 +2607,12 @@ }, "sqlState" : "HY000" }, + "INVALID_HANDLER_DECLARATION" : { + "message" : [ + "Invalid handler declaration. Handlers must be declared after variable/condition declaration, and before other statements." + ], + "sqlState" : "42KOQ" Review Comment: `DUPLICATE_CONDITION_IN_SCOPE` -> `42734` `DUPLICATE_CONDITION_IN_HANDLER_DECLARATION` -> `42734` `DUPLICATE_HANDLER_FOR_SAME_CONDITION` -> `42734` `INVALID_HANDLER_DECLARATION` -> `42K0Q` `INVALID_CONDITION_DECLARATION` -> `42K0R` `INVALID_SQLSTATE` -> `428B3` `UNSUPPORTED_FEATURE.CONTINUE_HANDLER` -> `0A000` (this is old sqlstate) -- 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