davidm-db commented on code in PR #49427:
URL: https://github.com/apache/spark/pull/49427#discussion_r1922079456


##########
sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/parser/ParserUtils.scala:
##########
@@ -140,6 +143,121 @@ object ParserUtils extends SparkParserUtils {
   }
 }
 
+class SqlScriptingParsingContext {
+
+  object State extends Enumeration {
+    type State = Value
+    val INIT, VARIABLE, CONDITION, HANDLER, STATEMENT = Value
+  }
+
+  private var currentState: State.State = State.INIT
+
+  /** Transition to VARIABLES_AND_CONDITIONS state. */

Review Comment:
   nit: you still have `VARIABLES_AND_CONDITIONS` in a few places in comments



-- 
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]

Reply via email to