Maps & structs
Scalar
map_from_entries()
Returns a map created from the entries of the array
Arguments & returns
map_from_entries(map)
Scalar
| Overload link | map |
Returns |
|---|---|---|
| #01 | STRUCT(K, V)[] |
MAP(K, V) |
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