kvrocks
kvrocks copied to clipboard
TimeSeries: Support `IGNORE` option when creating timesereies
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!
I can work on this!