[ 
https://issues.apache.org/jira/browse/SPARK-24543?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16510769#comment-16510769
 ] 

Apache Spark commented on SPARK-24543:
--------------------------------------

User 'MaxGekk' has created a pull request for this issue:
https://github.com/apache/spark/pull/21550

> Support any DataType as DDL string for from_json's schema
> ---------------------------------------------------------
>
>                 Key: SPARK-24543
>                 URL: https://issues.apache.org/jira/browse/SPARK-24543
>             Project: Spark
>          Issue Type: Improvement
>          Components: SQL
>    Affects Versions: 2.3.1
>            Reporter: Maxim Gekk
>            Priority: Minor
>
> Currently, schema for from_json can be specified as DataType or a string in 
> the following formats:
> * in SQL, as sequence of fields like _INT a, STRING b
> * in Scala, Python and etc, in JSON format or as in SQL 
> The ticket aims to support arbitrary DataType as DDL string for from_json. 
> For example:
> {code:sql}
> select from_json('{"a":1, "b":2}', 'map<string, int>')
> {code}



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

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

Reply via email to