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

Support customizing how calls are handled in reduce and eval #13

Merged
merged 1 commit into from
Mar 12, 2018

Conversation

jsternberg
Copy link
Contributor

@jsternberg jsternberg commented Mar 6, 2018

This adds a CallValuer interface so it can be used to evaluate a
function call.

This allows influxql to remain agnostic about how a function call is
used and is used directly to support math function calls such as the
trigonometry functions without directly implementing the functions in
this library.

@jsternberg jsternberg mentioned this pull request Mar 6, 2018
@jsternberg jsternberg requested a review from benbjohnson March 7, 2018 15:59
@jsternberg jsternberg force-pushed the js-call-valuer branch 2 times, most recently from 78ab01e to 62ca548 Compare March 8, 2018 21:28
@jsternberg jsternberg requested review from stuartcarnie and removed request for benbjohnson March 12, 2018 19:58
This adds the CallValuer interface so it can be used to evaluate a
function call.

This allows influxql to remain agnostic about how a function call is
used and is used directly to support math function calls such as the
trigonometry functions without directly implementing the functions in
this library.
Copy link
Contributor

@stuartcarnie stuartcarnie left a comment

Choose a reason for hiding this comment

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

LGTM 🍻

@jsternberg jsternberg merged commit 2438539 into master Mar 12, 2018
@jsternberg jsternberg deleted the js-call-valuer branch March 12, 2018 22:07
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.

2 participants