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

    https://github.com/apache/spark/pull/18975#discussion_r137605602
  
    --- Diff: 
sql/core/src/test/scala/org/apache/spark/sql/sources/InsertSuite.scala ---
    @@ -366,4 +367,43 @@ class InsertSuite extends DataSourceTest with 
SharedSQLContext {
             Row(Array(1, 2), Array("a", "b")))
         }
       }
    +
    +  test("insert overwrite directory") {
    +    withTempDir { dir =>
    +      val path = dir.toURI.getPath
    +
    +      val v1 =
    +        s"""
    +           | INSERT OVERWRITE DIRECTORY '${path}'
    +           | USING json
    +           | OPTIONS (a 1, b 0.1, c TRUE)
    --- End diff --
    
    added


---

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

Reply via email to