bitmap_to_array
Converts a BITMAP into a BIGINT array.
Syntaxβ
 ARRAY<BIGINT> BITMAP_TO_ARRAY (bitmap)
Parametersβ
bitmap: the bitmap you want to convert.
Return valueβ
Returns a BIGINT array.
Examplesβ
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                  |
+-----------------------+