subhramit commented on code in PR #58225:
URL: https://github.com/apache/spark/pull/58225#discussion_r3950059192


##########
sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/analysis/ResolveCursors.scala:
##########
@@ -82,7 +83,7 @@ class ResolveCursors extends Rule[LogicalPlan] {
         // Cursors are only allowed within SQL scripts
         throw new AnalysisException(
           errorClass = "CURSOR_OUTSIDE_SCRIPT",
-          messageParameters = Map("cursorName" -> nameParts.mkString(".")))
+          messageParameters = Map("cursorName" -> toSQLId(nameParts)))

Review Comment:
   Right. Changed to make `CURSOR_NOT_FOUND` path use `toSQLId` as well



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