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

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

     [ https://issues.apache.org/jira/browse/SPARK-37550?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Hyukjin Kwon resolved SPARK-37550.
----------------------------------
    Fix Version/s: 3.3.0
       Resolution: Fixed

Issue resolved by pull request 34809
[https://github.com/apache/spark/pull/34809]

> 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
>            Assignee: Brian Yue
>            Priority: Minor
>             Fix For: 3.3.0
>
>
> 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