yezhizi commented on issue #3217:
URL: https://github.com/apache/kvrocks/issues/3217#issuecomment-3570115276

   > Since there are no samples in the filtered region, should it return a 
single `NaN` or should it return TWA for all empty buckets `20-30, 30-40, 
40-50,......80-90`. In this case all the TWA is same for all the buckets.
   
   It should return TWA for all bucket ranges, which is different from other 
aggregators.
   ```
   127.0.0.1:6379> ts.range test1 - +
   1) 1) (integer) 10
      2) 34
   2) 1) (integer) 95
      2) 34
   127.0.0.1:6379> ts.range test1 20 90 AGGREGATION TWA 10 EMPTY
   1) 1) (integer) 20
      2) 34
   2) 1) (integer) 30
      2) 34
   3) 1) (integer) 40
      2) 34
   4) 1) (integer) 50
      2) 34
   5) 1) (integer) 60
      2) 34
   6) 1) (integer) 70
      2) 34
   7) 1) (integer) 80
      2) 34
   8) 1) (integer) 90
      2) 34
   127.0.0.1:6379> ts.range test1 20 90 AGGREGATION SUM 10 EMPTY
   (empty array)
   ```


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