You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Brian Yue (Jira)" <ji...@apache.org> on 2021/12/05 12:27:00 UTC

[jira] [Created] (SPARK-37550) from_json documentation lacks examples for complex types

Brian Yue created SPARK-37550:
---------------------------------

             Summary: from_json documentation lacks examples for complex types
                 Key: SPARK-37550
                 URL: https://issues.apache.org/jira/browse/SPARK-37550
             Project: Spark
          Issue Type: Documentation
          Components: Documentation, SQL
    Affects Versions: 3.2.0
            Reporter: Brian Yue


The documentation for from_json currently contains only examples of getting struct value from jsonStr with simple schema. It can take a lot of time to figure out how to parse jsonStr with complex types, especially for beginners.

As it is a commonly used function, I suggest adding an additional example to demonstrate how to parse jsonStr with nested types including ArrayType and StructType, which can make the documentation more intuitive.

 



--
This message was sent by Atlassian Jira
(v8.20.1#820001)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@spark.apache.org
For additional commands, e-mail: issues-help@spark.apache.org