zhengruifeng opened a new pull request, #38130:
URL: https://github.com/apache/spark/pull/38130

   ### What changes were proposed in this pull request?
   
   1. In AQE, explicitly invoke `cleanupResources` after each stage finished: 
In existing AQE, only `SortExec` override `cleanupResources` and will be called 
in `SortMergeJoinExec` (in `SortMergeJoinScanner` in the executors); for other 
cases, a physical operator's `cleanupResources` will never be invoked;
   2. In `AttachDistributedSequenceExec`, unpersist the cached RDD in 
`cleanupResources`
   
   ### Why are the changes needed?
   1, make `cleanupResources` works in general cases;
   2, unpersist the temp RDD in `AttachDistributedSequenceExec` ASAP;
   
   
   ### Does this PR introduce _any_ user-facing change?
   No
   
   
   ### How was this patch tested?
   existing UT
   


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