yezhizi commented on issue #3217:
URL: https://github.com/apache/kvrocks/issues/3217#issuecomment-3479357845
Hi @var-nan. The `twa` aggregation might not be very clear in the Redis
documentation, so I've drew up a quick diagram for the following example. Hope
this helps a bit!
Examples in redis(4 samples):
```
127.0.0.1:6379> ts.range test11 - +
1) 1) (integer) 12
2) 12
2) 1) (integer) 15
2) 15
3) 1) (integer) 19
2) 19
4) 1) (integer) 22
2) 22
127.0.0.1:6379> ts.range test11 - + aggregation twa 10
1) 1) (integer) 10
2) 16
2) 1) (integer) 20
2) 21
```

Note: right/left refers to the boundary timestamps of the bucket. first/last
refers to the timestamp of the first/last sample within this bucket.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]