Skip to content

Commit 6277722

Browse files
committed
Apply review comments
1 parent a03db2c commit 6277722

6 files changed

Lines changed: 8 additions & 8 deletions

File tree

content/commands/ts.incrby.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ is key name for the time series.
112112

113113
<details open><summary><code>addend</code></summary>
114114

115-
is numeric value of the addend (double). Starting from Redis 8.6, an error is returned if the addend is NaN.
115+
is numeric value of the addend (double). An error is returned if the addend is NaN.
116116
</details>
117117

118118
<note><b>Notes</b>

content/commands/ts.mrange.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -240,7 +240,7 @@ When used together with `AGGREGATION`: samples are filtered before being aggrega
240240
<details open>
241241
<summary><code>FILTER_BY_VALUE min max</code> (since RedisTimeSeries v1.6)</summary>
242242

243-
filters samples by minimum and maximum values. Starting from Redis 8.6, `min` and `max` cannot be NaN values.
243+
filters samples by minimum and maximum values. `min` and `max` cannot be NaN values.
244244

245245
When used together with `AGGREGATION`: samples are filtered before being aggregated.
246246
</details>

content/commands/ts.mrevrange.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -240,7 +240,7 @@ When used together with `AGGREGATION`: samples are filtered before being aggrega
240240
<details open>
241241
<summary><code>FILTER_BY_VALUE min max</code> (since RedisTimeSeries v1.6)</summary>
242242

243-
filters samples by minimum and maximum values. Starting from Redis 8.6, `min` and `max` cannot be NaN values.
243+
filters samples by minimum and maximum values. `min` and `max` cannot be NaN values.
244244

245245
When used together with `AGGREGATION`: samples are filtered before being aggregated.
246246
</details>

content/commands/ts.range.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,7 @@ When used together with `AGGREGATION`: samples are filtered before being aggrega
176176
<details open>
177177
<summary><code>FILTER_BY_VALUE min max</code> (since RedisTimeSeries v1.6)</summary>
178178

179-
filters samples by minimum and maximum values. Starting from Redis 8.6, `min` and `max` cannot be NaN values.
179+
filters samples by minimum and maximum values. `min` and `max` cannot be NaN values.
180180

181181
When used together with `AGGREGATION`: samples are filtered before being aggregated.
182182
</details>

content/commands/ts.revrange.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,7 @@ When used together with `AGGREGATION`: samples are filtered before being aggrega
177177
<details open>
178178
<summary><code>FILTER_BY_VALUE min max</code> (since RedisTimeSeries v1.6)</summary>
179179

180-
filters samples by minimum and maximum values. Starting from Redis 8.6, `min` and `max` cannot be NaN values.
180+
filters samples by minimum and maximum values. `min` and `max` cannot be NaN values.
181181

182182
When used together with `AGGREGATION`: samples are filtered before being aggregated.
183183
</details>

content/develop/data-types/timeseries/_index.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -390,15 +390,15 @@ The available aggregation functions are:
390390
- `max`: Maximum value
391391
- `range`: Difference between the highest and the lowest value
392392
- `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)
393395
- `first`: Value with lowest timestamp in the bucket
394396
- `last`: Value with highest timestamp in the bucket
395397
- `std.p`: Population standard deviation of the values
396398
- `std.s`: Sample standard deviation of the values
397399
- `var.p`: Population variance of the values
398400
- `var.s`: Sample variance of the values
399401
- `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)
402402

403403
For example, the example below shows an aggregation with the `avg` function over all
404404
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:
576576

577577
- **Adding NaN values**: Use [`TS.ADD`]({{< relref "commands/ts.add/" >}}) and [`TS.MADD`]({{< relref "commands/ts.madd/" >}}) to insert NaN values
578578
- **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
580580
- **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
581581
- **Duplicate policies**: Special handling for `MIN`, `MAX`, and `SUM` policies when mixing NaN and non-NaN values
582582
- **Filtering**: [`FILTER_BY_VALUE`]({{< relref "commands/ts.range#filter_by_value-min-max-since-redistimeseries-v16" >}}) parameters cannot be NaN values

0 commit comments

Comments
 (0)