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

introduce a new function non_negative_difference #8235

Merged
merged 1 commit into from
Mar 31, 2017

Conversation

zhexuany
Copy link
Contributor

@zhexuany zhexuany commented Mar 31, 2017

Required for all non-trivial PRs
  • Rebased/mergable
  • Tests pass
  • CHANGELOG.md updated
  • Sign CLA (if not already signed)

@zhexuany zhexuany force-pushed the non_negative_difference branch 2 times, most recently from 45eb48d to 83453c1 Compare March 31, 2017 03:02
Copy link
Contributor

@jsternberg jsternberg left a comment

Choose a reason for hiding this comment

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

@rbetts should this be added to be merged into 1.3?

@@ -216,6 +218,12 @@ func (r *FloatDifferenceReducer) Emit() []FloatPoint {
// Calculate the difference of successive points.
value := r.curr.Value - r.prev.Value

// if its non_negative_difference discard any negative value. Since
Copy link
Contributor

Choose a reason for hiding this comment

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

Can you modify this comment to use proper capitalization and fix the typo in makred to marked?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

done.

@@ -314,6 +314,56 @@ func TestParser_ParseStatement(t *testing.T) {
},
},

// non_negtative_difference
Copy link
Contributor

Choose a reason for hiding this comment

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

Another typo here.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

done

@jsternberg
Copy link
Contributor

Can you rebase to a single commit and update the changelog? Then I'll double check that this is OK to merge and hopefully have it done before the end of the day.

@zhexuany zhexuany force-pushed the non_negative_difference branch from 2f30b9b to 232fdae Compare March 31, 2017 15:09
@zhexuany
Copy link
Contributor Author

@jsternberg Done.

@jsternberg jsternberg merged commit 9052824 into influxdata:master Mar 31, 2017
@jsternberg
Copy link
Contributor

Thanks!

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