Merges one or more HLL++ sketches that were previously built using the aggregate function HLL_COUNT_BUILD into a new sketch. Each sketch must be built on the same type and the same precision. Attempts to merge sketches for different types or precisions results in an error. For example, you cannot merge a sketch built fromDocumentation Index
Fetch the complete documentation index at: https://docs.firebolt.io/llms.txt
Use this file to discover all available pages before exploring further.
INTEGER data with one built from TEXT data,
or a sketch built with precision 13 and a sketch built with precision 14.
Syntax
Parameters
| Parameter | Description | Supported input types |
|---|---|---|
<expression> | HLL++ sketch in a valid format, e.g. the output of the HLL_COUNT_BUILD function. | BYTEA |
<condition> | An optional boolean expression to filter rows used in aggregation | BOOL |
Return Type
BYTEA
Example
Following the example in HLL_COUNT_BUILD:| hll_estimate BIGINT | merged_sketch BYTEA |
|---|---|
| 6606880 | \x2f4167677265676174654675… |