Skip to content
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

[0.11.0] Queries involving relative time span past now() #5646

Closed
121watts opened this issue Feb 12, 2016 · 1 comment
Closed

[0.11.0] Queries involving relative time span past now() #5646

121watts opened this issue Feb 12, 2016 · 1 comment

Comments

@121watts
Copy link
Contributor

The following query should only return 60 points from the database

use _internal
SELECT max(fieldsCreate) AS fieldsCreate FROM "shard" WHERE time > now() - 1h GROUP BY time(1m)

a few thousand instead.

The current work around I've used is:

SELECT max(fieldsCreate) AS fieldsCreate FROM "shard" WHERE time > now() - 1h AND time < now() GROUP BY time(1m)
@rossmcdonald
Copy link
Contributor

Dupe of #5636. Implicit upper bounds with the new query engine have issues. This should hopefully be fixed by #5641.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants