[
https://issues.apache.org/jira/browse/SPARK-37550?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17453595#comment-17453595
]
Apache Spark commented on SPARK-37550:
--------------------------------------
User 'byyue' has created a pull request for this issue:
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
> Priority: Minor
>
> 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: [email protected]
For additional commands, e-mail: [email protected]