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

    https://github.com/apache/spark/pull/20649#discussion_r172080837
  
    --- Diff: 
sql/catalyst/src/main/scala/org/apache/spark/sql/types/StructType.scala ---
    @@ -284,7 +286,8 @@ case class StructType(fields: Array[StructField]) 
extends DataType with Seq[Stru
         val nonExistFields = names -- fieldNamesSet
         if (nonExistFields.nonEmpty) {
           throw new IllegalArgumentException(
    -        s"Field ${nonExistFields.mkString(",")} does not exist.")
    +        s"""Fields ${nonExistFields.mkString(", ")} does not exist.
    --- End diff --
    
    nit: `nonExistFields` can contain only one field, so maybe `Fields` -> 
`Field(s)`?


---

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

Reply via email to