kvrocks icon indicating copy to clipboard operation
kvrocks copied to clipboard

TimeSeries: Support `IGNORE` option when creating timesereies

Open yezhizi opened this issue 2 months ago • 1 comments

Search before asking

  • [x] I had searched in the issues and found no similar issues.

Motivation

When creating a time series, the [IGNORE ignoreMaxTimedestampDiff ignoreMaxValDiff] options can be specified. During samples writing through TS.ADD/TS.MADD, samples meeting certain condition will be ignored.

Redis reference: https://redis.io/docs/latest/commands/ts.create/

Solution

  • Add two fields(ignoreMaxTimedestampDiff ignoreMaxValDiff) to timeseries metadata
  • When adding samples, determine whether the "ignore" condition is met.
  • Add go integrated test

Are you willing to submit a PR?

  • [ ] I'm willing to submit a PR!

yezhizi avatar Oct 05 '25 04:10 yezhizi

I can work on this!

marcomit avatar Nov 15 '25 15:11 marcomit