-
Notifications
You must be signed in to change notification settings - Fork 752
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
ISSUE-1787: add running difference function #1961
ISSUE-1787: add running difference function #1961
Conversation
Thanks for the contribution! Please review the labels and make any necessary changes. |
Codecov Report
@@ Coverage Diff @@
## master #1961 +/- ##
=======================================
Coverage 68% 69%
=======================================
Files 639 652 +13
Lines 36180 36674 +494
=======================================
+ Hits 24913 25311 +398
- Misses 11267 11363 +96
Continue to review full report at Codecov.
|
/review @sundy-li |
Take the reviewer to sundy-li |
insert into runing_difference_test values (1, 1, 1, 'a'),(3, 3, 3, 'b'),(5, 5, 5, 'c'),(10, 10, 10, 'd'); | ||
|
||
select a, runningDifference(a), b, runningDifference(b), c, runningDifference(c), runningDifference(10) from runing_difference_test; | ||
select d, runningDifference(d) from runing_difference_test; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Here we can add an error hint to avoid the error info to *.result, like:
select d, runningDifference(d) from runing_difference_test; -- {ErrorCode 7}
}; | ||
} | ||
|
||
run_difference_compute!(compute_i8, i8, Int16, i16); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What about float numbers?
1e07140
to
8812ab8
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, thanks @ygf11
CI Passed |
10 similar comments
CI Passed |
CI Passed |
CI Passed |
CI Passed |
CI Passed |
CI Passed |
CI Passed |
CI Passed |
CI Passed |
CI Passed |
CI Passed |
16 similar comments
CI Passed |
CI Passed |
CI Passed |
CI Passed |
CI Passed |
CI Passed |
CI Passed |
CI Passed |
CI Passed |
CI Passed |
CI Passed |
CI Passed |
CI Passed |
CI Passed |
CI Passed |
CI Passed |
I hereby agree to the terms of the CLA available at: https://databend.rs/policies/cla/
Summary
Add runningDifference function.
Changelog
Related Issues
Fixes #1787
Test Plan
Unit Tests
Stateless Tests