davidm-db commented on code in PR #49427: URL: https://github.com/apache/spark/pull/49427#discussion_r1924320046
########## sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/parser/ParserUtils.scala: ########## @@ -161,25 +161,26 @@ class SqlScriptingParsingContext { transitionTo(State.VARIABLE, createVariable = Some(createVariable), None) } - /** Transition to VARIABLES_AND_CONDITIONS state. */ + /** Transition to CONDITION state. */ def condition(errorCondition: ErrorCondition): Unit = { transitionTo(State.CONDITION, None, errorCondition = Some(errorCondition)) } - /** Transition to HANDLERS state. */ + /** Transition to HANDLER state. */ def handler(): Unit = { transitionTo(State.HANDLER) } - /** Transition to STATEMENTS state. */ + /** Transition to STATEMENT state. */ def statement(): Unit = { transitionTo(State.STATEMENT) } /** * Helper method to transition to a new state. * Possible states are: - * 1. VARIABLES_AND_CONDITIONS (1) + * 1a. VARIABLE (1) + * 2b. CONDITION (1) Review Comment: nit: "1b" 😂 -- 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