TimeSeries: Support `twa` aggregator for downstream timeseries writting
- Dominant language
- C++
- Stars
- 4.4k
- Forks
- 658
- Avg merge
- 1d 20h
- Merged PRs (30d)
- 10
Description
### Search before asking
- [x] I had searched in the [issues](https://github.com/apache/kvrocks/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](https://redis.io/docs/latest/operate/oss_and_stack/stack-with-enterprise/release-notes/redistimeseries/redistimeseries-1.8-release-notes/#whats-new-in-18)
### 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!
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.