You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Timothy Chen (JIRA)" <ji...@apache.org> on 2018/04/12 19:00:00 UTC

[jira] [Resolved] (SPARK-23953) Add get_json_scalar function

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

Timothy Chen resolved SPARK-23953.
----------------------------------
    Resolution: Invalid

> Add get_json_scalar function
> ----------------------------
>
>                 Key: SPARK-23953
>                 URL: https://issues.apache.org/jira/browse/SPARK-23953
>             Project: Spark
>          Issue Type: New Feature
>          Components: SQL
>    Affects Versions: 2.3.0
>            Reporter: Timothy Chen
>            Priority: Major
>
> Besides get_json_object which returns a JSON string in a return type, we should add a function "get_json_scalar" that returns a scalar type assuming the path maps to a scalar (boolean, number, string or null). It returns null when the path points to a object or array structure
> This is also in Presto (https://prestodb.io/docs/current/functions/json.html).



--
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