Gengliang Wang created SPARK-37584:
--------------------------------------

             Summary: New function: map_contains_key
                 Key: SPARK-37584
                 URL: https://issues.apache.org/jira/browse/SPARK-37584
             Project: Spark
          Issue Type: New Feature
          Components: SQL
    Affects Versions: 3.3.0
            Reporter: Gengliang Wang
            Assignee: Gengliang Wang


Add a new function map_contains_key, which returns true if the map contains the 
key

Examples:
> SELECT map_contains_key(map(1, 'a', 2, 'b'), 1);
true
> SELECT map_contains_key(map(1, 'a', 2, 'b'), 3);
false



--
This message was sent by Atlassian Jira
(v8.20.1#820001)

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

Reply via email to