Error: The end instant must be greater or equal to the start

914 views
Skip to first unread message

pam...@tetrationanalytics.com

unread,
Mar 5, 2017, 12:40:20 PM3/5/17
to Druid User
Hi,

I'm getting a "The end instant must be greater or equal to the start" error when running my query. I've seen posts about this error but am unable to understand how I should update my query.  When I update the period to `PT01H` it works, but for a 1 minute period I can't get it work (tried a bunch of different time ranges). It is possible that there is no data for some minutes in the interval, could that be the problem? Thank you for your help, the full query is below.

{
"dataSource": "experiment_123",
"granularity": {
"type": "period",
"period": "PT60S",
"timeZone": "UTC",
"origin": "2017-03-04T08:00:00+00:00"
},
"intervals": ["2017-03-04T15:00:00+00:00/2017-03-04T20:00:00+00:00"],
"context": {
"timeout": 30000
},
"queryType": "timeseries",
"filter": {
"type": "or",
"fields": [{
"type": "selector",
"dimension": "policy_permitted",
"value": "PERMITTED"
}, {
"type": "selector",
"dimension": "policy_permitted",
"value": "PERMITTED"
}]
},
"aggregations": [{
"type": "longSum",
"name": "count",
"fieldName": "count"
}]
}

Gian Merlino

unread,
Mar 6, 2017, 4:29:12 AM3/6/17
to druid...@googlegroups.com
There should be a log on your broker or your historicals with a stack trace of this error. What does it say and what version of Druid is this?

Gian

--
You received this message because you are subscribed to the Google Groups "Druid User" group.
To unsubscribe from this group and stop receiving emails from it, send an email to druid-user+unsubscribe@googlegroups.com.
To post to this group, send email to druid...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/druid-user/58b2a78e-4616-4f0e-953c-2c8407a8bab3%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Andy Sloane

unread,
Mar 6, 2017, 5:41:32 PM3/6/17
to Druid User
The stack trace is superficially similar to https://github.com/druid-io/druid/issues/2479 but I tracked down the root cause. It's actually not druid's fault, but the "experiment" datasource was written with a custom indexer and the input wasn't time-sorted before writing out the segment, so getting the last value of the __time column ended up being before the first value, violating all sorts of invariants.

So, not actually a bug in druid but a bug on our end, easily fixed.

-Andy


Gian

To unsubscribe from this group and stop receiving emails from it, send an email to druid-user+...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages