Github user marmbrus commented on a diff in the pull request:
https://github.com/apache/spark/pull/15771#discussion_r86610677
--- Diff:
sql/core/src/test/scala/org/apache/spark/sql/JsonFunctionsSuite.scala ---
@@ -114,6 +116,18 @@ class JsonFunctionsSuite extends QueryTest with
SharedSQLContext {
Row(Row(null)) :: Nil)
}
+ test("from_json null column with parquet source") {
+ withTempDir { dir =>
+ Seq("""{"a": 1}""").toDF("value").write.parquet(new File(dir,
"p=x").toString)
+ Seq("""{"a": 2}""").toDF("record").write.parquet(new File(dir,
"p=y").toString)
+ val schema = new StructType().add("a", IntegerType)
+ val df = spark.read.parquet(dir.toString)
--- End diff --
Why parquet? Seems this is testing more than it needs to (and thus runs
slower).
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]