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

Skip past points at the same time in derivative call within a merged series #7293

Merged
merged 1 commit into from Sep 19, 2016

Conversation

jsternberg
Copy link
Contributor

The derivative() call would panic if it received two points at the same
time because it tried to divide by zero. The derivative call now skips
past these points. To avoid skipping past these points, use GROUP BY *
so that each series is kept separated into their own series.

The difference() call has also been modified to skip past these points.
Even though difference doesn't divide by the time, difference is
supposed to perform the same as derivative, but without dividing by the
time.

Fixes #7110.

@jwilder jwilder added this to the 1.0.1 milestone Sep 12, 2016
@jwilder
Copy link
Contributor

jwilder commented Sep 13, 2016

Can you add a test for this?

…series

The derivative() call would panic if it received two points at the same
time because it tried to divide by zero. The derivative call now skips
past these points. To avoid skipping past these points, use `GROUP BY *`
so that each series is kept separated into their own series.

The difference() call has also been modified to skip past these points.
Even though difference doesn't divide by the time, difference is
supposed to perform the same as derivative, but without dividing by the
time.
@jsternberg jsternberg force-pushed the js-7110-cannot-use-derivative-function branch from 6c0a04e to 0b94f5d Compare September 13, 2016 22:09
@jsternberg
Copy link
Contributor Author

Added some tests, found an error, and now I think it works correctly (and it has a test to confirm that).

@jsternberg jsternberg merged commit f44dd4e into 1.0 Sep 19, 2016
@jsternberg jsternberg deleted the js-7110-cannot-use-derivative-function branch September 19, 2016 14:29
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