Skip to main content
Version: Latest-3.2

bitmap_empty

Description

Returns an empty bitmap. It is mainly used to fill in the default value during insert or stream load. For example:

cat data | curl --location-trusted -u user:passwd -T - \
-H "columns: dt,page,v1,v2=bitmap_empty()" \
http://host:8410/api/test/testDb/_stream_load

Syntax

BITMAP BITMAP_EMPTY()

Examples

MySQL > select bitmap_count(bitmap_empty());
+------------------------------+
| bitmap_count(bitmap_empty()) |
+------------------------------+
| 0 |
+------------------------------+

keyword

BITMAP_EMPTY,BITMAP