var-nan opened a new pull request, #3262:
URL: https://github.com/apache/kvrocks/pull/3262

   `rangeCommon()` in redis_timeseries.cc will add two samples, `prev_sample` 
and `next_sample` to the `res` vector when the aggregator is twa. These two 
samples are used to compute the area of the polygons that are at the front of 
the first bucket and at the end of last bucket.
   
   `prev_sample` is the biggest sample in the data with timestamp less than or 
equal to first sample of filtered range and `next_sample` is the smallest 
sample in the data with timestamp greater than or equal to the last sample of 
filtered range.
   
   TODO: test TWA with FILTER_BY_TS/FILTER_BY_VALUE option.


-- 
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]

Reply via email to