Github user yhuai commented on a diff in the pull request: https://github.com/apache/spark/pull/11752#discussion_r56434051 --- Diff: sql/core/src/test/scala/org/apache/spark/sql/execution/datasources/json/TestJsonData.scala --- @@ -209,6 +209,11 @@ private[json] trait TestJsonData { sqlContext.sparkContext.parallelize( """{"ts":1451732645}""" :: Nil) + def arrayAndStructRecords: RDD[String] = + sqlContext.sparkContext.parallelize( + """{"a": {"b": 1}}""" :: + """{"a": []}""" :: Nil) --- End diff -- For this case, we will first throw an exception, catch it, and finally set the value to null, right?
--- 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 infrastruct...@apache.org or file a JIRA ticket with INFRA. --- --------------------------------------------------------------------- To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org For additional commands, e-mail: reviews-h...@spark.apache.org