spark-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Wenchen Fan (JIRA)" <j...@apache.org>
Subject [jira] [Resolved] (SPARK-24543) Support any DataType as DDL string for from_json's schema
Date Thu, 14 Jun 2018 20:29:00 GMT

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

Wenchen Fan resolved SPARK-24543.
---------------------------------
       Resolution: Fixed
    Fix Version/s: 2.4.0

Issue resolved by pull request 21550
[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
>            Assignee: Maxim Gekk
>            Priority: Minor
>             Fix For: 2.4.0
>
>
> 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-unsubscribe@spark.apache.org
For additional commands, e-mail: issues-help@spark.apache.org


Mime
View raw message