You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: content/develop/data-types/timeseries/_index.md
+3-3Lines changed: 3 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -390,15 +390,15 @@ The available aggregation functions are:
390
390
-`max`: Maximum value
391
391
-`range`: Difference between the highest and the lowest value
392
392
-`count`: Number of values
393
+
-`countNaN`: Number of NaN values (since Redis 8.6)
394
+
-`countAll`: Number of all values, both NaN and non-NaN (since Redis 8.6)
393
395
-`first`: Value with lowest timestamp in the bucket
394
396
-`last`: Value with highest timestamp in the bucket
395
397
-`std.p`: Population standard deviation of the values
396
398
-`std.s`: Sample standard deviation of the values
397
399
-`var.p`: Population variance of the values
398
400
-`var.s`: Sample variance of the values
399
401
-`twa`: Time-weighted average over the bucket's timeframe (since RedisTimeSeries v1.8)
400
-
-`countNaN`: Number of NaN values (since Redis 8.6)
401
-
-`countAll`: Number of all values, both NaN and non-NaN (since Redis 8.6)
402
402
403
403
For example, the example below shows an aggregation with the `avg` function over all
404
404
five data points in the `rg:2` time series. The bucket size is 2ms, so there are three
@@ -576,7 +576,7 @@ NaN values are useful in scenarios where you need to distinguish between:
576
576
577
577
-**Adding NaN values**: Use [`TS.ADD`]({{< relref "commands/ts.add/" >}}) and [`TS.MADD`]({{< relref "commands/ts.madd/" >}}) to insert NaN values
578
578
-**Querying NaN values**: All raw measurement queries ([`TS.GET`]({{< relref "commands/ts.get/" >}}), [`TS.RANGE`]({{< relref "commands/ts.range/" >}}), etc.) include NaN values in results
579
-
-**Aggregation with NaN**: All existing aggregation functions ignore NaN values. Use `countNaN` and `countAll` to count NaN and total values
579
+
-**Aggregation with NaN**: All existing aggregation functions except `countNaN` and `countAll`ignore NaN values. Use `countNaN` and `countAll` to count NaN and total values
580
580
-**Increment/Decrement**: [`TS.INCRBY`]({{< relref "commands/ts.incrby/" >}}) and [`TS.DECRBY`]({{< relref "commands/ts.decrby/" >}}) return errors when the current value or operand is NaN
581
581
-**Duplicate policies**: Special handling for `MIN`, `MAX`, and `SUM` policies when mixing NaN and non-NaN values
582
582
-**Filtering**: [`FILTER_BY_VALUE`]({{< relref "commands/ts.range#filter_by_value-min-max-since-redistimeseries-v16" >}}) parameters cannot be NaN values
0 commit comments