Syntax
Parameters
array: Elements in an array can be of the BIGINT, INT, TINYINT, or SMALLINT type.
Return value
Returns a value of the BITMAP type.Usage notes
- If the data type of elements in the input array is invalid, such as STRING or DECIMAL, an error is returned.
- If an empty array is entered, an empty BITMAP value is returned.
-
If
NULLis entered,NULLis returned.
Examples
Example 1: Convert an array into BITMAP values. This function must be nested inbitmap_to_array because BITMAP values cannot be displayed.
NULL and NULL is returned.