TimeSeries: Support `twa` aggregator for range queries
- 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
When using `TS.RANGE/TS.MRANGE` for range queries, it supports specifying `twa` (time-weighted average) as the aggregator
Redis reference:
https://redis.io/docs/latest/commands/ts.range/
[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 [this code snippets](https://github.com/apache/kvrocks/blob/8f04af34e804587a8f5bfe206937bb20e21d187b/src/types/redis_timeseries.cc#L770)
### 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.