panbingkun commented on code in PR #45776:
URL: https://github.com/apache/spark/pull/45776#discussion_r1545540426


##########
sql/core/src/test/scala/org/apache/spark/sql/test/DataFrameReaderWriterSuite.scala:
##########
@@ -625,15 +626,21 @@ class DataFrameReaderWriterSuite extends QueryTest with 
SharedSparkSession with
     spark.createDataset(data).write.mode(SaveMode.Overwrite).text(dir)
 
     // Reader, without user specified schema
-    testRead(spark.read.textFile().toDF(), Seq.empty, textSchema)
+    withTempDir { tmpDir =>

Review Comment:
   @HyukjinKwon 
   This is a test case for `Empty Dataset`. When reading an empty directory, 
you will get a `Empty Dataset`.
   
   
   



-- 
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.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to