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

Remove restrictions on where derivative can be used entirely #6375

Merged
merged 1 commit into from
Apr 22, 2016

Conversation

jsternberg
Copy link
Contributor

This removes the previous restrictions that kept derivative as only
capable of being used in a single field and only at the top level.
This lets users determine how they want to use derivative more freely
and opens up the possibility of also using math between derivatives.

This may open up some problems when it comes to math between derivatives
as timestamps may not match correctly. That is likely a problem related
to any binary math to begin with though and can probably be ignored by
the derivatives. I'm also not sure it makes sense to perform any math
between a derivative and a difference or perform math between a
derivative and a mean.

Fixes #6118.

@jsternberg
Copy link
Contributor Author

I have reservations about whether some more restrictions should be put in rather than removing them completely, but this can act as a good springboard for that discussion.

This removes the previous restrictions that kept derivative as only
capable of being used in a single field and only at the top level.
This lets users determine how they want to use derivative more freely
and opens up the possibility of also using math between derivatives.

This may open up some problems when it comes to math between derivatives
as timestamps may not match correctly. That is likely a problem related
to any binary math to begin with though and can probably be ignored by
the derivatives. I'm also not sure it makes sense to perform any math
between a derivative and a difference or perform math between a
derivative and a mean.

Fixes #6118.
@jsternberg jsternberg force-pushed the js-6118-derivative-on-multiple-fields branch from b8185a7 to 22a0505 Compare April 22, 2016 15:18
derivativeCall := aggr[0]
if len(derivativeCall.Args) == 0 {
return fmt.Errorf("derivative requires a field argument")
}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This validation should still exist per call.

@jwilder jwilder added this to the 0.13.0 milestone Apr 22, 2016
@jsternberg jsternberg merged commit c77cbb8 into master Apr 22, 2016
@jsternberg jsternberg deleted the js-6118-derivative-on-multiple-fields branch April 22, 2016 16:02
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.

3 participants