BITMAP_FROM_ARRAY
Descriptionβ
Converts an array of TINYINT/SMALLINT/INT/BIGINT type to a BITMAP. When the input field is illegal, the result returns NULL.
Syntaxβ
BITMAP_FROM_ARRAY(<arr>)
Parametersβ
Parameter | Description |
---|---|
<arr> | integer array |
Return Valueβ
Returns a BITMAP
- When the input field is invalid, the result is NULL
Examplesβ
SELECT bitmap_to_string(bitmap_from_array(array(1, 0, 1, 1, 0, 1, 0))) AS bs;
+------+
| bs |
+------+
| 0,1 |
+------+