You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Apache Spark (JIRA)" <ji...@apache.org> on 2018/06/13 08:19:00 UTC
[jira] [Assigned] (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:all-tabpanel ]
Apache Spark reassigned SPARK-24543:
------------------------------------
Assignee: (was: Apache Spark)
> 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