Maps & structs
Scalar
map_concat()
Returns a map created from merging the input maps, on key collision the value is taken from the last map with that key
Arguments & returns
map_concat(…)
Scalar
| Overload link | … Varargs | Returns |
|---|---|---|
| #01 | ANY |
LIST |
… accepts a variable number of arguments of the type shown.
Example
Haybarn WASM 1.5.5-rc3 · In your browser
Engine example · Run to view results.
In other engines
Snowflakemap_insert()
SELECT id, MAP_INSERT(attrs, 'new_key', 'new_value') AS attrs_with_insert FROM demo_maps
SELECT id, MAP_CONCAT(attrs, MAP {'new_key': 'new_value'}) AS attrs_with_insert FROM demo_maps