Skip to main content

HLL_HASH

Description​

Converts a given value to the HLL (HyperLogLog) type. This function is typically used during data loading to create an HLL from raw data.

Syntax​

HLL_HASH(<value>)

Parameters​

ParameterDescription
<value>The value to be converted to HLL type. This can be a string, number, or any data type.

Examples​

SELECT HLL_CARDINALITY(HLL_HASH('abc'));
+----------------------------------+
| hll_cardinality(HLL_HASH('abc')) |
+----------------------------------+
| 1 |
+----------------------------------+