-
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
[0.9.4.2] derivative is broken with order by desc #4675
Comments
@poelzi What Influx version are you running? |
Connected to http://localhost:8086 version 0.9.4.2 |
@poelzi What does the the data look like between |
It seems that it calculates the change after sorting which messes up the values. I would expect the results just in opposite direction so limit can be used for the last n values and I think thats the user expected behaviour. |
@poelzi We have documentation coming out to explain the derivative behavior soon. While this is expected behavior, it is not what most users expect. |
@jackzampolin I tend to agree with @poelzi on this. |
I think this should just take the derivative in reverse and that's what I would expect if I were using it. Does this look like what others would expect?
|
The derivative function had an arbitrary limitation that would cause it to set the value to zero if the previous value was after the next value. This caused all `ORDER BY desc` queries with `derivative()` to always return zero values. Fixes #4675.
The derivative function had an arbitrary limitation that would cause it to set the value to zero if the previous value was after the next value. This caused all `ORDER BY desc` queries with `derivative()` to always return zero values. Fixes #4675.
The derivative function had an arbitrary limitation that would cause it to set the value to zero if the previous value was after the next value. This caused all `ORDER BY desc` queries with `derivative()` to always return zero values. Fixes #4675.
The derivative function had an arbitrary limitation that would cause it to set the value to zero if the previous value was after the next value. This caused all `ORDER BY desc` queries with `derivative()` to always return zero values. Fixes #4675.
The derivative function had an arbitrary limitation that would cause it to set the value to zero if the previous value was after the next value. This caused all `ORDER BY desc` queries with `derivative()` to always return zero values. Fixes #4675.
When using order by, the derivative function gives strange results:
vs
The text was updated successfully, but these errors were encountered: