You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Gengliang Wang (Jira)" <ji...@apache.org> on 2021/12/09 14:45:00 UTC

[jira] [Resolved] (SPARK-37584) New SQL function: map_contains_key

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

Gengliang Wang resolved SPARK-37584.
------------------------------------
    Fix Version/s: 3.3.0
       Resolution: Fixed

Issue resolved by pull request 34836
[https://github.com/apache/spark/pull/34836]

> New SQL 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: Apache Spark
>            Priority: Major
>             Fix For: 3.3.0
>
>
> 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-unsubscribe@spark.apache.org
For additional commands, e-mail: issues-help@spark.apache.org