Skip to content

Commit

Permalink
Add support for HyperUnique aggregator
Browse files Browse the repository at this point in the history
  • Loading branch information
Davide Anastasia committed Aug 22, 2014
1 parent 36f41dc commit 090eb03
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pydruid/utils/aggregators.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,8 @@ def max(raw_metric):
def count(raw_metric):
return {"type": "count", "fieldName": raw_metric}

def hyperunique(raw_metric):
return {"type": "hyperUnique", "fieldName": raw_metric}

def build_aggregators(agg_input):
return [dict([('name', k)] + v.items())
Expand Down

0 comments on commit 090eb03

Please sign in to comment.