> ## Documentation Index
> Fetch the complete documentation index at: /documents/llms.txt
> Use this file to discover all available pages before exploring further.

# bitmap_to_array

> Converts a BITMAP into a BIGINT array.

Converts a BITMAP into a BIGINT array.

## Syntax

```Haskell theme={null}
 ARRAY<BIGINT> BITMAP_TO_ARRAY (bitmap)
```

## Parameters

`bitmap`: the bitmap you want to convert.

## Return value

Returns a BIGINT array.

## Examples

```Plain theme={null}
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                  |
+-----------------------+
```


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.