% This is generated by ESQL's AbstractFunctionTestCase. Do not edit it. See ../README.md for how to regenerate it.

**Example**

```esql
TS k8s
| STATS distincts=COUNT_DISTINCT(COUNT_DISTINCT_OVER_TIME(network.cost)),
        distincts_imprecise=COUNT_DISTINCT(COUNT_DISTINCT_OVER_TIME(network.cost, 100))
  BY cluster, time_bucket = TBUCKET(1minute)
```

| distincts:long | distincts_imprecise:long | cluster:keyword | time_bucket:datetime |
| --- | --- | --- | --- |
| 3 | 3 | qa | 2024-05-10T00:17:00.000Z |
| 3 | 3 | qa | 2024-05-10T00:15:00.000Z |
| 3 | 3 | prod | 2024-05-10T00:09:00.000Z |


