Back to Starrocks

bitmap_empty

docs/en/sql-reference/sql-functions/bitmap-functions/bitmap_empty.md

4.1.0625 B
Original Source

bitmap_empty

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

bash
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

Haskell
BITMAP BITMAP_EMPTY()

Examples

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

keyword

BITMAP_EMPTY,BITMAP