You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Hyukjin Kwon (Jira)" <ji...@apache.org> on 2020/12/04 08:33:01 UTC

[jira] [Updated] (SPARK-30324) Simplify API for JSON access in DataFrames/SQL

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

Hyukjin Kwon updated SPARK-30324:
---------------------------------
    Target Version/s: 3.2.0  (was: 3.1.0)

> Simplify API for JSON access in DataFrames/SQL
> ----------------------------------------------
>
>                 Key: SPARK-30324
>                 URL: https://issues.apache.org/jira/browse/SPARK-30324
>             Project: Spark
>          Issue Type: New Feature
>          Components: SQL
>    Affects Versions: 2.4.4
>            Reporter: Burak Yavuz
>            Priority: Major
>
> get_json_object() is a UDF to parse JSON fields. It is verbose and hard to use, e.g. I wasn't expecting the path to a field to have to start with "$.". 
> We can simplify all of this when a column is of StringType, and a nested field is requested. This API sugar will in the query planner be rewritten asĀ get_json_object.
> This nested access can then be extended in the future to other semi-structured formats.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

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