Time series rules dont update value

Hi there,

I have created a TS in redis with some aggregation rules. However the rules dont get updated, they always come as empty list.

TS.MGET “LATEST” “FILTER” “symbol=btcusdt”

    1. “btcusdt”
    2. (empty list or set)
      1. “1679061819032”
      2. “26555.09”
    1. “btcusdt:1800000”
    2. (empty list or set)
    3. (empty list or set)
    1. “btcusdt:300000”
    2. (empty list or set)
    3. (empty list or set)
    1. “btcusdt:3600000”
    2. (empty list or set)
    3. (empty list or set)


TS.INFO btcusdt

  1. “totalSamples”
  2. “279”
  3. “memoryUsage”
  4. “8664”
  5. “firstTimestamp”
  6. “1679061816361”
  7. “lastTimestamp”
  8. “1679061820124”
  9. “retentionTime”
  10. “604800000”
  11. “chunkCount”
  12. “2”
  13. “chunkSize”
  14. “4096”
  15. “chunkType”
  16. “uncompressed”
  17. “duplicatePolicy”
  18. “null”
  19. “labels”
      1. “exchange”
    1. “binance”
    1. “symbol”
    2. “btcusdt”
  20. “sourceKey”
  21. “null”
  22. “rules”
      1. “btcusdt:60000”
    1. “60000”
    2. “AVG”
    1. “btcusdt:300000”
    2. “300000”
    3. “AVG”
    1. “btcusdt:900000”
    2. “900000”
    3. “AVG”
    1. “btcusdt:1800000”
    2. “1800000”
    3. “AVG”
    1. “btcusdt:3600000”
    2. “3600000”
    3. “AVG”
    1. “btcusdt:86400000”
    2. “86400000”
    3. “AVG”

Did you create the rules before inserting the samples? Note that only new samples that are added into the source series after the creation of the rule will be aggregated.

Can you please provide a minimal set of commands that reproduce this problem, starting with an empty database, on v1.8.9?