Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update utils first last #238

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions pydruid/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@
import json
import re
import urllib
import urllib.error
import urllib.request
from base64 import b64encode

from pydruid.query import QueryBuilder
Expand Down
5 changes: 5 additions & 0 deletions pydruid/utils/aggregators.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,11 @@ def doublemin(raw_metric):
def doublemax(raw_metric):
return {"type": "doubleMax", "fieldName": raw_metric}

def doublelast(raw_metric):
return {"type": "doubleLast", "fieldName": raw_metric}

def doublefirst(raw_metric):
return {"type": "doubleFirst", "fieldName": raw_metric}

def count(raw_metric):
return {"type": "count", "fieldName": raw_metric}
Expand Down