-
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
Default query end time should be math.MaxInt64 #5047
Comments
We don't consider this a breaking change? Or we do, but we prepared to take the hit? |
Most people aren't writing data into the future. Also, it doesn't actually break the API from a client compatibility perspective. So I think it's worth doing. Also, the next release is 0.10.0 |
This should be pretty straightforward one, and a chance to learn some of the parser and query code. It should be pretty clear in the code where the upper bound is set to now, if not explicit set in the query. Most of the code changes will be in the tests. |
I think i am wrong but shouldn't changing this line be enough? |
Yes, that should be all it takes. That's why it's low difficulty. :-) Sounds like we need some more test coverage. What would be great is some tests added like this one: https://github.com/influxdb/influxdb/blob/master/cmd/influxd/run/server_test.go#L913 basically a new test ( |
OK =) |
Great. Make sure your test fails first, before making any changes to the database code, so you can be sure your test is correct. |
@beckettsean ah right. Closed in favor of yours :) |
Too many people have reported bugs where they can't see their data because they wrote a data point with a future timestamp. This is because by default we set the query end time to
time.Now()
if they didn't specify an end time.We should have the end time default to
time.Unix(0, math.MaxInt64)
The text was updated successfully, but these errors were encountered: