Github user dongjoon-hyun commented on a diff in the pull request:
https://github.com/apache/spark/pull/20525#discussion_r166780472
--- Diff:
sql/core/src/test/scala/org/apache/spark/sql/execution/datasources/FileFormatWriterSuite.scala
---
@@ -32,6 +33,24 @@ class FileFormatWriterSuite extends QueryTest with
SharedSQLContext {
}
}
+ test("SPARK-23271 empty dataframe when saved in parquet should write a
metadata only file") {
--- End diff --
Ur, `FileBasedDataSourceSuite` may be more suitable. It has a similar test
case. You can add your test case in the similar manner.
https://github.com/apache/spark/blob/master/sql/core/src/test/scala/org/apache/spark/sql/FileBasedDataSourceSuite.scala#L59-L73
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]