HyukjinKwon opened a new pull request, #42330: URL: https://github.com/apache/spark/pull/42330
### What changes were proposed in this pull request? This PR implements the symmetry of https://github.com/apache/spark/pull/42304 and https://github.com/apache/spark/pull/42320. 1. It releases the execute when the error is raised during the iteration 2. When you explicitly close the generator, (e.g., either `generator.close()` or explicit `GeneratorExit`), it releases the execution. ### Why are the changes needed? For the feature parity, see also https://github.com/apache/spark/pull/42320 and https://github.com/apache/spark/pull/42304 ### Does this PR introduce _any_ user-facing change? See also https://github.com/apache/spark/pull/42320 and https://github.com/apache/spark/pull/42304 ### How was this patch tested? Tests will be added separately. -- 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