cloud-fan commented on code in PR #49372:
URL: https://github.com/apache/spark/pull/49372#discussion_r1907130292


##########
sql/core/src/main/scala/org/apache/spark/sql/SparkSession.scala:
##########
@@ -449,14 +449,10 @@ class SparkSession private(
     var result: Option[Seq[Row]] = None
 
     while (sse.hasNext) {
+      val df = sse.next()

Review Comment:
   can we add some comments here to say that we have to collect results first 
because `sse.hasNext` is not idempotent?



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