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

    https://github.com/apache/spark/pull/20694#discussion_r173584348
  
    --- Diff: 
sql/catalyst/src/test/scala/org/apache/spark/sql/catalyst/expressions/JsonExpressionsSuite.scala
 ---
    @@ -680,4 +682,31 @@ class JsonExpressionsSuite extends SparkFunSuite with 
ExpressionEvalHelper {
           )
         }
       }
    +
    +  test("from_json missing fields") {
    +    for (forceJsonNullableSchema <- Seq(false, true)) {
    +      withSQLConf(SQLConf.FROM_JSON_FORCE_NULLABLE_SCHEMA.key -> 
forceJsonNullableSchema.toString) {
    +        val input =
    +          """{
    +            |  "a": 1,
    +            |  "c": "foo"
    +            |}
    +            |"""
    +            .stripMargin
    --- End diff --
    
    Nit: the style. 


---

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

Reply via email to