You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Maxim Gekk (JIRA)" <ji...@apache.org> on 2018/06/13 08:06:00 UTC

[jira] [Commented] (SPARK-24543) Support any DataType as DDL string for from_json's schema

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

Maxim Gekk commented on SPARK-24543:
------------------------------------

I am working on the feature at the moment.

> 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-unsubscribe@spark.apache.org
For additional commands, e-mail: issues-help@spark.apache.org