You are viewing a plain text version of this content. The canonical link for it is here.
Posted to reviews@spark.apache.org by GitBox <gi...@apache.org> on 2022/10/11 09:35:38 UTC
[GitHub] [spark] cloud-fan commented on a diff in pull request #38130: [SPARK-40556][PS][SQL] AQE clean up resources after each stage and eagerly clean Pandas Index Cache
cloud-fan commented on code in PR #38130:
URL: https://github.com/apache/spark/pull/38130#discussion_r992084889
##########
sql/core/src/main/scala/org/apache/spark/sql/execution/adaptive/QueryStageExec.scala:
##########
@@ -151,6 +151,11 @@ abstract class QueryStageExec extends LeafExecNode {
plan.generateTreeString(
depth + 1, lastChildren :+ true, append, verbose, "", false, maxFields, printNodeId, indent)
}
+
+ override protected[sql] def cleanupResources(): Unit = {
+ plan.cleanupResources()
+ super.cleanupResources()
Review Comment:
We don't need to call `super.cleanupResources()`, as query stage is a leaf node.
--
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-unsubscribe@spark.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org