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

    https://github.com/apache/spark/pull/21439#discussion_r204932903
  
    --- Diff: 
sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/expressions/jsonExpressions.scala
 ---
    @@ -544,34 +544,27 @@ case class JsonToStructs(
           timeZoneId = None)
     
       override def checkInputDataTypes(): TypeCheckResult = nullableSchema 
match {
    -    case _: StructType | ArrayType(_: StructType, _) | _: MapType =>
    +    case _: StructType | _: ArrayType | _: MapType =>
           super.checkInputDataTypes()
         case _ => TypeCheckResult.TypeCheckFailure(
           s"Input schema ${nullableSchema.catalogString} must be a struct or 
an array of structs.")
    --- End diff --
    
    `or an array of structs.` -> `or an array.`


---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org
For additional commands, e-mail: reviews-h...@spark.apache.org

Reply via email to