Numeric functions
HLL_COUNT_ESTIMATE
Reference material for HLL_COUNT_ESTIMATE
Extracts a cardinality estimate of a single HLL++ sketch that was previously built using the aggregate function HLL_COUNT_BUILD.
Syntax
Parameters
Parameter | Description | Supported input types |
---|---|---|
<expression> | An HLL++ sketch produced by the HLL_COUNT_BUILD function. | BYTEA |
Return Type
BIGINT
Example
Following the example in HLL_COUNT_BUILD:
hll_estimate (BIGINT) |
---|
3291008 |
4948957 |
hll_estimate (BIGINT) |
---|
6606880 |