Skip to main content

BITMAP_TO_ARRAY

Converts a Bitmap into an Array.

Syntax​

BITMAP_TO_ARRAY( <bitmap> )

Return Type​

Array (UInt64)

Examples​

SELECT BITMAP_TO_ARRAY(TO_BITMAP('1, 3, 5'));

╭───────────────────────────────────────╮
│ bitmap_to_array(to_bitmap('1, 3, 5')) │
├───────────────────────────────────────┤
│ [1,3,5] │
╰───────────────────────────────────────╯
Try Databend Cloud for FREE

Multimodal, object-storage-native warehouse for BI, vectors, search, and geo.

Snowflake-compatible SQL with automatic scaling.

Sign up and get $200 in credits.

Try it today