[
https://issues.apache.org/jira/browse/SPARK-20009?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15935264#comment-15935264
]
Xiao Li commented on SPARK-20009:
---------------------------------
Are you suggesting to change the semantics of the parameter of the external API?
We are unable to break the existing one. Maybe we can support both? Try to
detect whether it is in the JSON format. If not, we can try to parse it as the
DDL format?
> Use user-friendly DDL formats for defining a schema in user-facing APIs
> ------------------------------------------------------------------------
>
> Key: SPARK-20009
> URL: https://issues.apache.org/jira/browse/SPARK-20009
> Project: Spark
> Issue Type: Improvement
> Components: SQL
> Affects Versions: 2.1.0
> Reporter: Takeshi Yamamuro
>
> In https://issues.apache.org/jira/browse/SPARK-19830, we add a new API in the
> DDL parser to convert a DDL string into a schema. Then, we can use DDL
> formats in existing some APIs, e.g., functions.from_json
> https://github.com/apache/spark/blob/master/sql/core/src/main/scala/org/apache/spark/sql/functions.scala#L3062.
--
This message was sent by Atlassian JIRA
(v6.3.15#6346)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]