> ## Documentation Index
> Fetch the complete documentation index at: /documents/llms.txt
> Use this file to discover all available pages before exploring further.

# hll_cardinality

> 计算单个 HLL 类型值的基数。

用于计算 HLL 类型值的基数。

## 语法

```Haskell theme={null}
HLL_CARDINALITY(hll)
```

## 参数说明

`hll`: 通过其它列或者导入数据里面的数据生成的 HLL 列。

## 返回值说明

返回 BIGINT 类型的值。

## 示例

```plain text theme={null}
MySQL > select HLL_CARDINALITY(uv_set) from test_uv;
+---------------------------+
| hll_cardinality(`uv_set`) |
+---------------------------+
|                         3 |
+---------------------------+
```


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.