cloud-fan commented on code in PR #52039:
URL: https://github.com/apache/spark/pull/52039#discussion_r2446793618
##########
sql/core/src/main/scala/org/apache/spark/sql/execution/SQLExecution.scala:
##########
@@ -211,6 +211,20 @@ object SQLExecution extends Logging {
}
}
}
+
+ // Cancel all spark jobs associated with this executionID, but
only if it's the
+ // root execution.
+
+ // TODO: Consider enhancing this logic to cancel jobs earlier
when nested
+ // query executions are completed.
+ if (executionId == rootExecutionId) {
+ sparkSession.sparkContext.cancelJobsWithTag(
+ executionIdJobTag(sparkSession, executionId))
+ // scalastyle:off println
+ println("cancel the executionID " +
executionIdJobTag(sparkSession, executionId))
Review Comment:
we should use `logInfo` instead of print
--
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]