miland-db commented on code in PR #48950:
URL: https://github.com/apache/spark/pull/48950#discussion_r1856491695


##########
sql/core/src/main/scala/org/apache/spark/sql/SparkSession.scala:
##########
@@ -411,6 +413,34 @@ class SparkSession private(
    |  Everything else  |
    * ----------------- */
 
+  private def executeSqlScript(
+      script: CompoundBody,
+      args: Map[String, Expression] = Map.empty): DataFrame = {
+    val sse = new SqlScriptingExecution(script, this, args)
+    var df: DataFrame = null

Review Comment:
   `SqlScriptExecution` next method returns DataFrame. We can remove this var 
and use `val` inside while loop. 



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