MAP_CONTAINS_KEY

functionsupportedCore SQL functions

docs.snowflake.com ↗

Semi-structured and structured data functions

Determines whether the specified MAP contains the specified key.

Syntax

MAP_CONTAINS_KEY( <key> , <map> )

Parameters

NameRequiredDescription
keyrequiredThe key to find.
maprequiredThe map to be searched.

Returns

- Returns TRUE if the specified map contains the specified key. - Returns FALSE if the specified map doesn’t contain the specified key.

Usage notes