Github user gatorsmile commented on a diff in the pull request:
https://github.com/apache/spark/pull/20694#discussion_r173584456
--- Diff:
sql/core/src/test/scala/org/apache/spark/sql/execution/datasources/parquet/ParquetIOSuite.scala
---
@@ -780,6 +781,25 @@ class ParquetIOSuite extends QueryTest with
ParquetTest with SharedSQLContext {
assert(option.compressionCodecClassName == "UNCOMPRESSED")
}
}
+
+ test("SPARK-23173 Writing a file with data converted from JSON with and
incorrect user schema") {
+ withTempPath { file =>
+ val jsonData =
+ """{
+ | "a": 1,
+ | "c": "foo"
+ |}
+ |"""
--- End diff --
The same here.
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]