Array Datatype API and Operations #851
Labels
expressions
Issues or PRs related to the expression API
refactor
Issues or PRs related to refactoring the codebase
ux
User experience related issues
Milestone
We should enable basic operations on
ARRAY<T>
types after #848 is merged.array.length()
: number of elements in each array in a columnarray[start:stop]
andarray[index]
, i.e.,__getitem__
: element selectionarray.collect
: collecting scalar values into anGROUP BY
array.contains(element)
: iselement
inarray
array.concat(*arrays)
: concatenatearray
with*arrays
array.find(element)
: returns the index of the first occurrence ofelement
and -1 if it's not foundMost of the work that needs to be done here is in the type system.
@wesm I've done a lot of this work, but in retrospect I think renaming
Array
-the-column toField
is a better in the long term to disambiguate it fromArray
-the-element-type. Otherwise we get things likeArrayArray
(as opposed toArrayField
).xref #782
The text was updated successfully, but these errors were encountered: