liquidm / ruby-druid

Ruby utilities for metamx druid
MIT License
43 stars 34 forks source link

Incorrect interval being transmitted in query: NOW() instead of end time #11

Closed rjurney closed 11 years ago

rjurney commented 11 years ago

Ruby: group_by().double_sum(:rows).granularity(:second).interval("2013-10-16T13:11:20-07:00/2013-10-16T13:12:20-07:00")

Query JSON: {"dataSource":"webstream","granularity":"second","intervals":["2013-10-16T13:11:20-07:00/2013-10-16T13:24:30-07:00"],"queryType":"groupBy","dimensions":[],"aggregations":[{"type":"doubleSum","name":"rows","fieldName":"rows"}]}

Note that the trailing interval has been changed from 2013-10-16T13:12:20-07:00 to 2013-10-16T13:24:30-07:00 (current time)

rjurney commented 11 years ago

My issue, not rub-druid's.