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

    https://github.com/apache/spark/pull/22688#discussion_r224316130
  
    --- Diff: 
sql/core/src/test/scala/org/apache/spark/sql/sources/v2/DataSourceV2Suite.scala 
---
    @@ -351,6 +351,21 @@ class DataSourceV2Suite extends QueryTest with 
SharedSQLContext {
           }
         }
       }
    +
    +  test("SPARK-25700: do not read schema when writing in other modes except 
append mode") {
    +    withTempPath { file =>
    +      val cls = classOf[SimpleWriteOnlyDataSource]
    +      val path = file.getCanonicalPath
    +      val df = spark.range(5).select($"id", $"id")
    --- End diff --
    
    The write path looks requiring two columns:
    
    
https://github.com/apache/spark/blob/e06da95cd9423f55cdb154a2778b0bddf7be984c/sql/core/src/test/scala/org/apache/spark/sql/sources/v2/SimpleWritableDataSource.scala#L214



---

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

Reply via email to