-
Notifications
You must be signed in to change notification settings - Fork 390
feat(promql): add holt_winters initial implementation #1342
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
feat(promql): add holt_winters initial implementation #1342
Conversation
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.
Hi, sorry for the delay! In case you need, here is the document about RangeVector
p.s.: this image is wrong, it should be "offset = 0, length = 4"
Codecov Report
@@ Coverage Diff @@
## develop #1342 +/- ##
===========================================
- Coverage 85.96% 85.24% -0.73%
===========================================
Files 506 515 +9
Lines 76892 77825 +933
===========================================
+ Hits 66103 66340 +237
- Misses 10789 11485 +696 |
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.
Thanks for this @etolbakov. Your implementation is very clean and the tests are concrete 🚀
Co-authored-by: Ruihang Xia <waynestxia@gmail.com>
) * feat(promql): add holt_winters initial implementation * feat(promql): improve docs for holt_winters * feat(promql): adjust holt_winters implementation according to code review * feat(promql): add holt_winters test from prometheus promql function test suite * feat(promql): add holt_winters more tests from prometheus promql function test suite * feat(promql): fix styling issue Co-authored-by: Ruihang Xia <waynestxia@gmail.com> --------- Co-authored-by: Ruihang Xia <waynestxia@gmail.com>
I hereby agree to the terms of the GreptimeDB CLA
What's changed and what's your intention?
Implement the
holt_winters
function (strictly speaking, it is aholt
/ Double exponential smoothing since it doesn't use theseasonality
parameter. In order to achieve parity with PromQL we have to follow this naming/implementation).I used this website for implementation validation.
Checklist
Refer to a related PR or issue link
#1307
prometheus/prometheus#2458