kvrocks icon indicating copy to clipboard operation
kvrocks copied to clipboard

TimeSeries: Support `twa` aggregator for downstream timeseries writting

Open yezhizi opened this issue 2 months ago • 0 comments

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!

yezhizi avatar Oct 05 '25 04:10 yezhizi