kvrocks
kvrocks copied to clipboard
TimeSeries: Support `twa` aggregator for downstream timeseries writting
Search before asking
- [x] I had searched in the issues and found no similar issues.
Motivation
Note: It is recommended to complete #3217 first.
When using TS.CREATERULE to create a compaction rule, support the twa aggregator and ensure correct aggregation in the downstream series when adding samples.
Redis reference: https://redis.io/docs/latest/commands/ts.createrule/ Twa details
Solution
Refer to others aggregator like sum, avg
Refer to #3151
Are you willing to submit a PR?
- [ ] I'm willing to submit a PR!