Github user HyukjinKwon commented on a diff in the pull request: https://github.com/apache/spark/pull/21686#discussion_r199902249 --- Diff: python/pyspark/sql/functions.py --- @@ -2189,11 +2189,16 @@ def from_json(col, schema, options={}): >>> df = spark.createDataFrame(data, ("key", "value")) >>> df.select(from_json(df.value, schema).alias("json")).collect() [Row(json=[Row(a=1)])] + >>> schema = schema_of_json(lit('''{"a": 0}''')) --- End diff -- Nope, I mean the examples here in this function.
--- --------------------------------------------------------------------- To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org For additional commands, e-mail: reviews-h...@spark.apache.org