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

Derivative query with group by time but no aggregate function should fail parse #3718

Closed
pauldix opened this issue Aug 18, 2015 · 0 comments
Closed

Comments

@pauldix
Copy link
Member

pauldix commented Aug 18, 2015

If you do the query:

select derivative(value) from foo where time > now() - 4h group by time(1m)

That query should fail. Derivatives with a GROUP BY time clause require an aggregate function to be in the call to derivative, like this:

select derivative(first(value)) from foo where time > now() - 4h group by time(1m)

This should be validated at parse time. The error message should indicate that they can use an aggregate function inside the call to derivative, like min, max, first, last, mean, or sum.

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

3 participants