Skip to content

Commit 6fadaa3

Browse files
authored
docs: Add bitmap_to_array doc (#2940)
1 parent 298a1d6 commit 6fadaa3

File tree

1 file changed

+27
-0
lines changed

1 file changed

+27
-0
lines changed
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
---
2+
title: BITMAP_TO_ARRAY
3+
---
4+
5+
Converts a Bitmap into an Array.
6+
7+
## Syntax
8+
9+
```sql
10+
BITMAP_TO_ARRAY( <bitmap> )
11+
```
12+
13+
## Return Type
14+
15+
`Array (UInt64)`
16+
17+
## Examples
18+
19+
```sql
20+
SELECT BITMAP_TO_ARRAY(TO_BITMAP('1, 3, 5'));
21+
22+
╭───────────────────────────────────────╮
23+
│ bitmap_to_array(to_bitmap('1, 3, 5')) │
24+
├───────────────────────────────────────┤
25+
│ [1,3,5] │
26+
╰───────────────────────────────────────╯
27+
```

0 commit comments

Comments
 (0)