-
Notifications
You must be signed in to change notification settings - Fork 3.6k
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
Queries with relative times seem to be off #2045
Comments
My apologies, but it looks like this is a bug that was mistakenly introduced in PR #2016. That said, there were issues with how the time for these queries was computed before (and the bucket problem). When I added the code to I think the solution is getting rid of if m.interval > 0 {
startTimeBucket = m.TMin / m.interval * m.interval
} else {
startTimeBucket = m.TMin
} then, in tx.go we can add an else case in if interval > 0 {
// Make sure the bottom of the interval lands on a natural boundary.
intervalBottom = intervalBottom / interval * interval
l.tmax = intervalBottom + interval - 1
} else {
l.tmax = l.job.TMax
} I have a local version running now and am working on testing it. |
This solution causes some group by queries to fail when a minimum time is not specified. I am tied up in meetings for the next few hours, but can get back to it after that. |
This is fixed in RC16. |
tested! 👍 |
From this thread: https://groups.google.com/forum/?#!msg/influxdb/WLPOANOb0B8/HWC239vQbJUJ
Looks like queries with
WHERE time > now() - 1h
or something like that are doing weird things. Maybe a timezone thing? Something else? Please to investigate.The text was updated successfully, but these errors were encountered: