gengliangwang commented on a change in pull request #24318: [SPARK-27407][SQL]
File source V2: Invalidate cache data on overwrite/append
URL: https://github.com/apache/spark/pull/24318#discussion_r273309208
##########
File path:
sql/core/src/test/scala/org/apache/spark/sql/FileBasedDataSourceSuite.scala
##########
@@ -494,6 +494,38 @@ class FileBasedDataSourceSuite extends QueryTest with
SharedSQLContext with Befo
}
}
+ test("Do not use cache on overwrite") {
+ Seq("", "orc").foreach { useV1SourceReaderList =>
+ withSQLConf(SQLConf.USE_V1_SOURCE_READER_LIST.key ->
useV1SourceReaderList) {
+ withTempDir { dir =>
+ val path = dir.toString
+ spark.range(1000).write.mode("overwrite").orc(path)
Review comment:
@dongjoon-hyun The cache invalidation is for all file sources. Testing ORC
here is quite sufficient, just like only Parquet is tested in #13566.
----------------------------------------------------------------
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]
With regards,
Apache Git Services
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]