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

Allow derivative() function to be used with ORDER BY desc #6409

Merged
merged 1 commit into from
Apr 22, 2016

Conversation

jsternberg
Copy link
Contributor

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.

@jsternberg jsternberg force-pushed the js-4675-derivative-order-by-desc branch 3 times, most recently from 299f4bf to 095de6a Compare April 20, 2016 14:21
@jwilder jwilder added this to the 0.13.0 milestone Apr 22, 2016
@jsternberg jsternberg force-pushed the js-4675-derivative-order-by-desc branch 2 times, most recently from 1c90166 to 0e8de03 Compare April 22, 2016 16:05
@jwilder
Copy link
Contributor

jwilder commented Apr 22, 2016

👍

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.
@jsternberg jsternberg force-pushed the js-4675-derivative-order-by-desc branch from 0e8de03 to 9b6d5df Compare April 22, 2016 16:20
@jsternberg jsternberg merged commit 38bd047 into master Apr 22, 2016
@jsternberg jsternberg deleted the js-4675-derivative-order-by-desc branch April 22, 2016 16:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants