跳到主要内容
版本: 最新版本-3.5

bitmap_to_array

将 BITMAP 转换为 BIGINT 数组。

语法

 ARRAY<BIGINT> BITMAP_TO_ARRAY (bitmap)

参数

bitmap:要转换的位图。

返回值

返回 BIGINT 数组。

示例

select bitmap_to_array(bitmap_from_string("1, 7"));
+----------------------------------------------+
| bitmap_to_array(bitmap_from_string('1, 7')) |
+----------------------------------------------+
| [1,7] |
+----------------------------------------------+

select bitmap_to_array(NULL);
+-----------------------+
| bitmap_to_array(NULL) |
+-----------------------+
| NULL |
+-----------------------+