Back to Starrocks

hll_hash

docs/en/sql-reference/sql-functions/scalar-functions/hll_hash.md

4.1.0573 B
Original Source

hll_hash

Converts a value to an hll type. Typically used in imports to map a value in the source data to an HLL column type in the StarRocks table.

Syntax

Haskell
HLL_HASH(column_name)

Parameters

column_name: The name of the generated HLL column.

Return value

Returns a value of the HLL type.

Example

plain
mysql> select hll_cardinality(hll_hash("a"));
+--------------------------------+
| hll_cardinality(hll_hash('a')) |
+--------------------------------+
|                              1 |
+--------------------------------+