Open gurustron opened 1 year ago
Presto supports set_union aggregate function:
set_union
set_union(array(T)) -> array(T) Returns an array of all the distinct values contained in each array of the input
set_union(array(T)) -> array(T)
Can we add it to Trino?
Workarounds: use array handling:
array_distinct(flatten(array_agg(array_col)))
cc: @martint
array_distinct(flatten(array_agg(array_col))) use lots of memory
Presto supports
set_union
aggregate function:Can we add it to Trino?
Workarounds: use array handling: