zhengruifeng opened a new pull request, #54178: URL: https://github.com/apache/spark/pull/54178
### What changes were proposed in this pull request? Disable RDD cache in DataFrame.zipWithIndex ### Why are the changes needed? When `AttachDistributedSequence` was first introduced for Pandas API on Spark in https://github.com/apache/spark/commit/93cec49212fe82816fcadf69f429cebaec60e058, the underlying RDD was `localCheckpoint`ed to cache to avoid re-computation. Then we hit serious executor memory issue, and in https://github.com/apache/spark/commit/42790905668effc2c0c081bae7d081faa1e18424 we made the storage level configurable and release the cached data after each stage by AQE. Since we are reusing `AttachDistributedSequence` to implement `DataFrame.zipWithIndex`, to be more conservative, we'd start with a no-cache version, it will be easy to enable the caching if necessary in the future. Moreover, there is some approaches to optimize the no-cache version https://github.com/apache/spark/pull/54169 ### Does this PR introduce _any_ user-facing change? No ### How was this patch tested? CI ### Was this patch authored or co-authored using generative AI tooling? No -- 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]
