dusantism-db commented on code in PR #51595:
URL: https://github.com/apache/spark/pull/51595#discussion_r2222584425


##########
sql/catalyst/src/main/scala/org/apache/spark/sql/errors/SqlScriptingErrors.scala:
##########
@@ -30,10 +30,21 @@ import org.apache.spark.sql.internal.SQLConf
  */
 private[sql] object SqlScriptingErrors {
 
+  def forVariableNameAlreadyExistsAsLabelInScope(
+    origin: Origin,
+    varName: String): Throwable = {
+    new SqlScriptingException(
+      origin = origin,
+      errorClass = "FOR_VARIABLE_NAME_FORBIDDEN.NAME_ALREADY_IN_USE",
+      cause = null,
+      messageParameters = Map("varName" -> toSQLId(varName)))
+  }

Review Comment:
   Do we even need this exception? `LABEL_OR_FOR_VARIABLE_ALREADY_EXISTS` is 
very similar.



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

Reply via email to