karuppayya commented on code in PR #52606:
URL: https://github.com/apache/spark/pull/52606#discussion_r2500041988


##########
sql/core/src/main/scala/org/apache/spark/sql/classic/Dataset.scala:
##########
@@ -1598,7 +1598,12 @@ class Dataset[T] private[sql](
   // Represents the `QueryExecution` used to produce the content of the 
Dataset as an `RDD`.
   @transient private lazy val rddQueryExecution: QueryExecution = {
     val deserialized = CatalystSerde.deserialize[T](logicalPlan)
-    sparkSession.sessionState.executePlan(deserialized)
+    new QueryExecution(
+      sparkSession,
+      deserialized,
+      mode = CommandExecutionMode.ALL,
+      shuffleCleanupMode = DoNotCleanup

Review Comment:
   I think it wpould be good to document this behavior
   Lets update this behavior in docs of 
`SQLConf.CLASSIC_SHUFFLE_DEPENDENCY_FILE_CLEANUP_ENABLED`?



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