Reference material for APACHE_DATASKETCHES_HLL_MERGE
<expression>
datatype.
Attempts to merge sketches for different datatypes will NOT result in an error, and it’s the user responsibility to
merge skeches with the same datatype only.
For example, you can merge a sketch built from INTEGER
data with one built from TEXT
data but the estimated
cardinality will be incorrect.
If sketches are with different hll precision and hll type the merged sketch will be built with lowest precision and type of all inputs.
For example, you can merge a sketch built with precision 13 and a sketch built with precision 14 and the result
precision will be 13.
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 |
BYTEA
estimate BIGINT | merged_sketch BYTEA |
---|---|
6673219 | \x0a0107120018000a… |