Github user MaxGekk commented on a diff in the pull request:

    https://github.com/apache/spark/pull/23173#discussion_r237633755
  
    --- Diff: 
sql/core/src/test/scala/org/apache/spark/sql/execution/datasources/csv/CSVSuite.scala
 ---
    @@ -1987,6 +1987,18 @@ class CSVSuite extends QueryTest with 
SharedSQLContext with SQLTestUtils with Te
         assert(errMsg2.contains("'lineSep' can contain only 1 character"))
       }
     
    +  test("SPARK-26208: write and read empty data to csv file with header") {
    +    withTempPath { path =>
    +      val df1 = Seq.empty[(String, String)].toDF("x", "y")
    +      df1.printSchema
    +      df1.write.format("csv").option("header", 
true).save(path.getAbsolutePath)
    +      val df2 = spark.read.format("csv").option("header", 
true).load(path.getAbsolutePath)
    +      df2.printSchema
    --- End diff --
    
    Please, remove this.


---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org
For additional commands, e-mail: reviews-h...@spark.apache.org

Reply via email to