Github user patrickmcgloin commented on a diff in the pull request: https://github.com/apache/spark/pull/21671#discussion_r199696129 --- Diff: python/pyspark/sql/functions.py --- @@ -2163,9 +2163,9 @@ def json_tuple(col, *fields): @since(2.1) def from_json(col, schema, options={}): """ - Parses a column containing a JSON string into a :class:`MapType` with :class:`StringType` - as keys type, :class:`StructType` or :class:`ArrayType` of :class:`StructType`\\s with - the specified schema. Returns `null`, in the case of an unparseable string. + Parses a column containing a JSON string into a :class:`MapType`, :class:`StructType` + or :class:`ArrayType` of :class:`StructType`\\s with the specified schema. Returns + `null`, in the case of an unparseable string. --- End diff -- @viirya @MaxGekk does this generic solution in JacksonParser (see makeKeyConverter) address your concerns?
--- --------------------------------------------------------------------- To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org For additional commands, e-mail: reviews-h...@spark.apache.org