How do I do “array_agg” (in Presto’s sense) in Pinot? (The agg function should just return an array of all the elements.) Should I write my own custom agg function, or run it in Presto? Thanks!
k
Kishore G
11/04/2021, 8:47 PM
sumMV?
b
bc Wong
11/05/2021, 1:17 AM
I’m aggregating on a non-numeric column. For example:
Copy code
select student, array_agg(course)
from transcript
group by 1
would produce something like:
Copy code
John, [English, Math]
Mary, [Math]
m
Mayank
11/05/2021, 4:32 AM
Aggregation functions in Pinot are on numeric values today.