Skip to main content

TO_BITMAP

Converts a value to BITMAP data type.

Syntax

TO_BITMAP( <expr> )

Examples

SELECT TO_BITMAP('1101');

┌───────────────────┐
│ to_bitmap('1101')
├───────────────────┤
<bitmap binary>
└───────────────────┘
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