hi, does pinot provide any benefits for use cases ...
# general
i
hi, does pinot provide any benefits for use cases that no aggregation will be applied to query (means there is no metrics columns, all are dimension columns). and is that the reason why metrics column does not allow other like String types
m
Do you mean you want to just fetch a bunch of rows from Pinot without any aggregation or group-by?
i
@User yes. or combination usage (like a table to server both aggregation queries but also just few rows query)
m
Yes, you can do so. Especially, if you have both aggregation and selection queries, both will work fine with Pinot
What you want to avoid is cases where you just have select * queries that are simply fetching millions of records per query, and there are no aggregation queries. In that case, you are not really utilizing the power of Pinot
i
make sense. what about string type support for metric columns, why this is not supported? what if I just want to aggregate the count of this metrics, string type should be reasonable right?
m
You can do count(*) anytime.
Metric columns are usually ones where you would do something like
sum(metric)
i
ok so I need to make it as dimension columns, and avoid index by set it to
noDictionaryColumns
correct?
m
No
You just do something like
select count(<col>) from myTable where <col> != null
Note, Pinot does not support nulls natively yet, so null values are replaced by a default value, which you will have to filter out
You don't need to do anything special here for just getting count
i
yeah, but I do not want to create index on this column since will not filter or aggregate on this column, how do I avoid the indexing