メインコンテンツまでスキップ
バージョン: 3.2

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 |
+-----------------------+
Rocky the happy otterStarRocks Assistant

AI generated answers are based on docs and other sources. Please test answers in non-production environments.