Hyperloglog. For approximate
relative errors by number of buckets, see the
relative errors section.
Samples
Estimate the relative standard error of a hyperloglog namedhyperloglog. The expected output is 0.011490485194281396.
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Estimate the relative standard error of a hyperloglog
Hyperloglog. For approximate
relative errors by number of buckets, see the
relative errors section.
hyperloglog. The expected output is 0.011490485194281396.
SELECT stderror(hyperloglog(8192, data))
FROM generate_series(1, 100000) data
stderror
----------------------
0.011490485194281396
stderror(
hyperloglog Hyperloglog
) RETURNS DOUBLE PRECISION
| Name | Type | Default | Required | Description |
|---|---|---|---|---|
hyperloglog | Hyperloglog | - | ✔ | The hyperloglog to estimate the error of. |
| Column | Type | Description |
|---|---|---|
| stderror | DOUBLE PRECISION | The approximate relative standard error of the hyperloglog. |