---
title: "map_contains_entry function in Strata | Oplema"
description: "Check whether a map includes a particular key and value together. Write it as map_contains_entry(map, key, value) in a Strata Formula or Filter."
url: "https://oplema.com/docs/strata/functions/map-contains-entry"
updated: "2026-11-04"
---

# map\_contains\_entry

Check whether a map includes a particular key and value together.

## Try an expression

In [Formula](https://oplema.com/docs/strata/prep/formula), enter the expression and set Output type to **BOOLEAN**.

### Expression

```
map_contains_entry(MAP {'key1': 10, 'key2': 20, 'key3': 30}, 'key2', 20)
```

### Result

```
true
```

To use your own data, replace the example values with column names. Keep format strings and other options as written.

This Boolean expression also works in [Filter](https://oplema.com/docs/strata/prep/filter) custom mode. For the literal inputs above, the row goes to the True output. A missing result goes to False.

Try it live in Formula

Result
| id | result |
| --- | --- |
| 1 | true |

## Arguments and types

```
map_contains_entry(map, key, value)
```

**map**

Any value

**key**

Any value

**value**

Any value

Supported signatures (1)

```
map_contains_entry(map: ANY, key: ANY, value: ANY)
```

The result type can depend on the input types. See DuckDB for the full argument rules.

## Things to know

If the first argument is missing, the result is NULL.

## Related functions

[map\_contains\_value

Check whether any entry in a map has the requested value.

](https://oplema.com/docs/strata/functions/map-contains-value)[element\_at

Look up a key in a map and return its value inside a list, or an empty list if the key is absent. The key must have the same type as the map's keys.

](https://oplema.com/docs/strata/functions/element-at)[map\_concat

Merge maps into one. If a key appears more than once, the value from the last map with that key wins.

](https://oplema.com/docs/strata/functions/map-concat)[map\_extract

Look up a key in a map and return its value inside a list, or an empty list if the key is absent. The key must have the same type as the map's keys.

](https://oplema.com/docs/strata/functions/map-extract)

[Browse maps](https://oplema.com/docs/strata/functions#maps) [DuckDB documentation](https://duckdb.org/docs/current/sql/functions/map.html#map_contains_entrymap-key-value)

Function metadata from DuckDB, used under the [MIT license](https://github.com/duckdb/duckdb/blob/v1.5.4/LICENSE).
