MAP_CAT
functionsupportedCore SQL functionsReturns the concatenation of two MAP values.
Syntax
MAP_CAT( <map1> , <map2> )
Parameters
| Name | Required | Description |
|---|---|---|
map1 | required | The source MAP. |
map2 | required | The MAP to be appended to map1. |
Returns
The return type of this function is the type of map1. map2 is coerced into the map1 type following the coercion rules. For information about coercion rules, see Implicit casting a value (coercion).
Usage notes
- If both map1 and map2 have a value with the same key, then the output map contains the value from map2.
- If either argument is NULL, the function returns NULL without reporting any error.