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: [email protected]
For additional commands, e-mail: [email protected]