cloud-fan commented on code in PR #45930: URL: https://github.com/apache/spark/pull/45930#discussion_r1584496133
########## sql/core/src/main/scala/org/apache/spark/sql/execution/SQLExecution.scala: ########## @@ -161,6 +165,24 @@ object SQLExecution extends Logging { case e => Utils.exceptionString(e) } + if (queryExecution.shuffleCleanupMode != DoNotCleanup + && isExecutedPlanAvailable) { + val shuffleIds = queryExecution.executedPlan match { Review Comment: Ideally we should clean up shuffles for CTAS and INSERT as well, so they also run queries. ########## sql/core/src/main/scala/org/apache/spark/sql/execution/SQLExecution.scala: ########## @@ -161,6 +165,24 @@ object SQLExecution extends Logging { case e => Utils.exceptionString(e) } + if (queryExecution.shuffleCleanupMode != DoNotCleanup + && isExecutedPlanAvailable) { + val shuffleIds = queryExecution.executedPlan match { Review Comment: Ideally we should clean up shuffles for CTAS and INSERT as well, as they also run queries. -- 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