メインコンテンツまでスキップ

bitmap_to_array

bitmap_to_array

説明

BITMAPをBIGINTの配列に変換します。

構文

 ARRAY<BIGINT> BITMAP_TO_ARRAY (bitmap)

パラメータ

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 |
+-----------------------+