Github user marmbrus commented on a diff in the pull request: https://github.com/apache/spark/pull/16929#discussion_r103300622 --- Diff: sql/core/src/main/scala/org/apache/spark/sql/functions.scala --- @@ -2969,11 +2969,27 @@ object functions { } /** - * (Java-specific) Parses a column containing a JSON string into a `StructType` with the + * (Scala-specific) Parses a column containing a JSON array string into a `ArrayType` with the * specified schema. Returns `null`, in the case of an unparseable string. * - * @param e a string column containing JSON data. - * @param schema the schema to use when parsing the json string + * @param e a string column containing JSON array data. + * @param schema the schema to use when parsing the json array string + * @param options options to control how the json is parsed. accepts the same options and the + * json data source. + * + * @group collection_funcs + * @since 2.2.0 + */ + def from_json(e: Column, schema: ArrayType, options: Map[String, String]): Column = withExpr { --- End diff -- Really, why not just support any `DataType` here?
--- 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