-
Notifications
You must be signed in to change notification settings - Fork 8.3k
Map datatype #1841
Copy link
Copy link
Closed
Labels
Description
There is already limited support for a Map datatype via the Nested type and *Map aggregate functions. This means people have a need for keys->value data structures.
It would be useful to have a dedicated Map datatype which can work with at least integers and strings as the keys and any other datatype as the value. Syntactic sugar should allow accessing values of the Map via the index operator and an easy way to create Maps.
E.g. creation via Map('foo', 1, 'bar', 3) and access via map['foo']
One can eachieve the required data storage via a Nested(k String, v Int64) column but access is rather clunky: nst.v[indexOf(nst.k, 'foo')]
Reactions are currently unavailable