druid-io / pydruid

A Python connector for Druid
Other
509 stars 200 forks source link

Support for Distinct Values #93

Open vikramsinghchandel opened 7 years ago

vikramsinghchandel commented 7 years ago

How to perform following aggregation operation in pydruid AVG(DISTINCT(col))

var23rav commented 7 years ago

Do a groupby on col, which will give you a list of unique data. The apply avg, aggregation on result.