-
- Downloads
[SPARK-21435][SQL] Empty files should be skipped while write to file
## What changes were proposed in this pull request? Add EmptyDirectoryWriteTask for empty task while writing files. Fix the empty result for parquet format by leaving the first partition for meta writing. ## How was this patch tested? Add new test in `FileFormatWriterSuite ` Author: xuanyuanking <xyliyuanjian@gmail.com> Closes #18654 from xuanyuanking/SPARK-21435.
Showing
- sql/core/src/main/scala/org/apache/spark/sql/execution/datasources/FileFormatWriter.scala 18 additions, 1 deletion...he/spark/sql/execution/datasources/FileFormatWriter.scala
- sql/core/src/test/scala/org/apache/spark/sql/execution/datasources/FileFormatWriterSuite.scala 33 additions, 0 deletions...ark/sql/execution/datasources/FileFormatWriterSuite.scala
Please register or sign in to comment