[
https://issues.apache.org/jira/browse/SPARK-19637?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15872470#comment-15872470
]
Michael Armbrust commented on SPARK-19637:
------------------------------------------
>From JSON is harder because the second argument is a StructType. We could
>consider accepting a string in the DDL format for declaring a tables schema
>(i.e. {{a: Int, b: struct<a:Int, c: String>...}}.
> add to_json APIs to SQL
> -----------------------
>
> Key: SPARK-19637
> URL: https://issues.apache.org/jira/browse/SPARK-19637
> Project: Spark
> Issue Type: New Feature
> Components: SQL
> Affects Versions: 2.1.0
> Reporter: Burak Yavuz
>
> The method "to_json" is a useful method in turning a struct into a json
> string. It currently doesn't work in SQL, but adding it should be trivial.
--
This message was sent by Atlassian JIRA
(v6.3.15#6346)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]