-
- Downloads
[SPARK-19736][SQL] refreshByPath should clear all cached plans with the specified path
## What changes were proposed in this pull request? `Catalog.refreshByPath` can refresh the cache entry and the associated metadata for all dataframes (if any), that contain the given data source path. However, `CacheManager.invalidateCachedPath` doesn't clear all cached plans with the specified path. It causes some strange behaviors reported in SPARK-15678. ## How was this patch tested? Jenkins tests. Please review http://spark.apache.org/contributing.html before opening a pull request. Author: Liang-Chi Hsieh <viirya@gmail.com> Closes #17064 from viirya/fix-refreshByPath.
Showing
- sql/core/src/main/scala/org/apache/spark/sql/execution/CacheManager.scala 10 additions, 9 deletions...n/scala/org/apache/spark/sql/execution/CacheManager.scala
- sql/core/src/test/scala/org/apache/spark/sql/CachedTableSuite.scala 16 additions, 0 deletions...rc/test/scala/org/apache/spark/sql/CachedTableSuite.scala
Please register or sign in to comment