Is there a way we can do mode calculation in Pinot...
# troubleshooting
y
Is there a way we can do mode calculation in Pinot ?
k
whats the use case? what do you want the result to be if there are multiple modes
y
For our business purpose, we want the smallest value.
k
dont think we have a udf for that right now
two work arounds
• select count(*) as count, x from T order by count asc top 10
y
It would be hard for us to split the query into multiple queries, would it be possible to create a udf for the same ?
k
yes,