MaxGekk opened a new pull request #31172: URL: https://github.com/apache/spark/pull/31172
### What changes were proposed in this pull request? 1. Add new method `recacheByPlan` to `DataSourceV2Strategy` and pass it the exec node where need to recache table. 2. Simplify `invalidateCache` (and rename it `invalidateTableCache`) by retargeting it for only table cache invalidation. ### Why are the changes needed? 1. Improve code maintenance 2. Reduce the number of calls to the Cache Manager when need to recache a table. Before the changes, `invalidateCache()` invokes the Cache Manager 3 times: `lookupCachedData()`, `uncacheQuery()` and `cacheQuery()`. 3. Also this should speed up table recaching. ### Does this PR introduce _any_ user-facing change? No ### How was this patch tested? By running the existing test suites for v2 the add/drop/rename partition commands. ---------------------------------------------------------------- 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. For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
