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/10 16:56:00 UTC
[jira] [Created] (SPARK-23953) Add get_json_scalar function
Timothy Chen created SPARK-23953:
------------------------------------
Summary: 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
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