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-unsubscr...@spark.apache.org
For additional commands, e-mail: issues-h...@spark.apache.org

Reply via email to