Skip to content

Commit f2bc140

Browse files
committed
Updated SME feedback.
1 parent 0b14d70 commit f2bc140

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/content/docs/nrql/nrql-syntax-clauses-functions.mdx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2118,15 +2118,15 @@ SELECT histogram(duration, 10, 20) FROM PageView SINCE 1 week ago
21182118
title={<InlineCode>uniqueCount(attribute, [, attribute [, ...]] [, precision: number])</InlineCode>}
21192119
>
21202120

2121-
Use the `uniqueCount()` function to get the number of unique values recorded for an attribute over a specified time range. This function provides an exact result for up to 256 unique values when you call it without the `precision` argument. For more than 256 unique values, the result is approximate. You can specify a `precision` value within the range of 256 to 50,000 to increase the threshold for exact results. When unique values exceed the set threshold, the function uses the [HyperLogLog probabilistic data structure](https://algo.inria.fr/flajolet/Publications/FlFuGaMe07.pdf) to provide an approximate result.
2121+
Use the `uniqueCount()` function to get the number of unique values recorded for an attribute over a specified time range. To count the unique combinations of multiple attribute values, specify those attributes with the function. You can include up to 32 attributes. This function provides an exact result for up to 256 unique values when you call it without the `precision` argument. For more than 256 unique values, the result is approximate. You can specify a `precision` value within the range of 256 to 50,000 to increase the threshold for exact results. When unique values exceed the set threshold, the function uses the [HyperLogLog probabilistic data structure](https://algo.inria.fr/flajolet/Publications/FlFuGaMe07.pdf) to provide an approximate result.
21222122

21232123
Use the `uniqueCount()` function by specifying the attributes and optionally set the precision argument as follows:
21242124

21252125
```sql
21262126
uniqueCount(attribute, [, attribute [, ...]] [, precision: number])
21272127
```
2128-
* **Attribute(s)**: Attributes for which you want to count unique values.
2129-
* **Precision**: A numeric argument that sets the threshold for exact results. You can set a value up to 50,000.
2128+
* **Attribute(s)**: Specify an attribute for which you want to count unique values, or specify multiple attributes to count unique combinations of values. You can specify up to 32 attributes.
2129+
* **Precision**: Specify a nuber that sets the threshold for exact results. You can set a value up to 50,000.
21302130

21312131
Query example without a `precision` argument:
21322132

0 commit comments

Comments
 (0)