Maps & structs
Scalar
map_from_entries()
Returns a map created from the entries of the array
Arguments & returns
map_from_entries(…)
Scalar
| Overload link | … Varargs | Returns |
|---|---|---|
| #01 | ANY |
MAP |
… 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_delete()
SELECT id, MAP_DELETE(attrs, del_key1, del_key2) AS attrs_after_delete FROM demo_maps
SELECT id, MAP_FROM_ENTRIES(LIST_FILTER(MAP_ENTRIES(attrs), x -> NOT x.key IN (del_key1, del_key2))) AS attrs_after_delete FROM demo_maps