Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion docs/src/main/sphinx/functions/map.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,9 @@

## Subscript operator: \[\]

The `[]` operator is used to retrieve the value corresponding to a given key from a map:
The `[]` operator is used to retrieve the value corresponding to a given key from a map.
This operator throws an error if the key is not contained in the map.
See also `element_at` function that returns `NULL` in such case.

```
SELECT name_to_age_map['Bob'] AS bob_age;
Expand Down