📣
TiDB Cloud Premium is now in public preview. Unlimited growth, instant elasticity, advanced security for enterprise workloads. Try it out →

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] │ ╰───────────────────────────────────────╯

Was this page helpful?