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

# hll_union

> hll_union 返回一组 HLL 值的并集。

返回一组 HLL 值的并集。

## 语法

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

## 参数说明

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

## 返回值说明

返回值为 hll 类型。

## 示例

```Plain theme={null}
mysql> select k1, hll_cardinality(hll_union(v1)) from tbl group by k1;
+------+----------------------------------+
| k1   | hll_cardinality(hll_union(`v1`)) |
+------+----------------------------------+
|    2 |                                4 |
|    1 |                                3 |
+------+----------------------------------+
```


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