srielau commented on code in PR #53530:
URL: https://github.com/apache/spark/pull/53530#discussion_r2692840041


##########
sql/core/src/main/scala/org/apache/spark/sql/execution/command/v2/OpenCursorExec.scala:
##########
@@ -59,7 +59,7 @@ case class OpenCursorExec(
         messageParameters = Map("cursorName" -> cursorRef.sql)))
 
     currentState match {
-      case CursorDeclared => // Expected state
+      case CursorDeclared | CursorClosed => // Expected states - new or closed 
cursor

Review Comment:
   eYes, if you re-open a closed cursor the query is re-executed and teh cursor 
set before the first row.



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