Reference material for APACHE_DATASKETCHES_HLL_ESTIMATE
APACHE_DATASKETCHES_HLL_ESTIMATE
function is used to estimate the cardinality (number of unique elements) of a dataset represented by an HLL (HyperLogLog) sketch. This is particularly useful for large datasets where exact counting is computationally expensive.
Parameter | Description | Supported input types |
---|---|---|
<expression> | An Apache DataSketches HLL sketches in a valid format, e.g. the output of the APACHE_DATASKETCHES_HLL_BUILD function. | BYTEA |
BIGINT
estimate (BIGINT) |
---|
3333526 |
5001149 |
hll_estimate (BIGINT) |
---|
6673219 |