-
Notifications
You must be signed in to change notification settings - Fork 202
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
Add min and max aggregators for long and double #84
Conversation
Anyone to look at this? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the contribution!
The patch generally looks good. I left one comment about potentially making things easier for users upgrading. 👍 from me after that.
Could you please also fill out the CLA at http://druid.io/community/cla.html?
def doublesum(raw_metric): | ||
return {"type": "doubleSum", "fieldName": raw_metric} | ||
|
||
|
||
def min(raw_metric): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could you leave the old ones in for compatibility with older python clients? They should turn into doubleMin
and doubleMax
since the old min/max aggregators acted like the double versions.
Maybe also add a docstring to the old min/max versions saying they're deprecated.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sounds good, I'll do that
@gianm thanks for the review. I added back the deprecated methods and also signed the CLA |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @azymnis, lgtm!
This fixes the existing
min
andmax
aggregators. Based on the druid docs these should bedoubleMin
,doubleMax
,longMin
, andlongMax
.