-
- Downloads
[SPARK-19463][SQL] refresh cache after the InsertIntoHadoopFsRelationCommand
## What changes were proposed in this pull request? If we first cache a DataSource table, then we insert some data into the table, we should refresh the data in the cache after the insert command. ## How was this patch tested? unit test added Author: windpiger <songjun@outlook.com> Closes #16809 from windpiger/refreshCacheAfterInsert.
Showing
- sql/core/src/main/scala/org/apache/spark/sql/execution/datasources/InsertIntoHadoopFsRelationCommand.scala 3 additions, 0 deletions...ution/datasources/InsertIntoHadoopFsRelationCommand.scala
- sql/core/src/test/scala/org/apache/spark/sql/execution/datasources/parquet/ParquetQuerySuite.scala 0 additions, 4 deletions...sql/execution/datasources/parquet/ParquetQuerySuite.scala
- sql/core/src/test/scala/org/apache/spark/sql/sources/InsertSuite.scala 9 additions, 9 deletions...test/scala/org/apache/spark/sql/sources/InsertSuite.scala
- sql/hive/src/test/scala/org/apache/spark/sql/hive/CachedTableSuite.scala 2 additions, 12 deletions...st/scala/org/apache/spark/sql/hive/CachedTableSuite.scala
Loading
Please register or sign in to comment