Github user HyukjinKwon commented on a diff in the pull request: https://github.com/apache/spark/pull/18498#discussion_r125168486 --- Diff: python/pyspark/sql/functions.py --- @@ -1839,7 +1839,8 @@ def from_json(col, schema, options={}): string. :param col: string column in json format - :param schema: a StructType or ArrayType of StructType to use when parsing the json column + :param schema: a StructType or ArrayType of StructType to use when parsing the json column. + Since Spark 2.3, the DDL-formatted string is also supported for the schema. --- End diff -- Up to my knowledge, we don't have a specific rule for describing additional behaviours in Python documentation (at least I see such changes were merged time to time). I tried to make this prettier as below.
--- 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