zhengruifeng commented on code in PR #38130:
URL: https://github.com/apache/spark/pull/38130#discussion_r992162591
##########
sql/core/src/main/scala/org/apache/spark/sql/execution/python/AttachDistributedSequenceExec.scala:
##########
@@ -63,6 +97,16 @@ case class AttachDistributedSequenceExec(
}
}
+ override protected[sql] def cleanupResources(): Unit = {
+ this.synchronized {
+ if (cached != null && cached.getStorageLevel != StorageLevel.NONE) {
Review Comment:
I think so, maybe we don't need the `synchronized `
--
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]