VeloDB Cloud
SQL Manual
Functions
bitmap-functions
bitmap_hash64

bitmap_hash64

Description

Syntax:

BITMAP BITMAP_HASH64(expr)

This function computes the 64-bit hash value for a expr of any type and returns a bitmap containing that hash value. It is mainly used to load non-integer value into bitmap columns in stream load tasks.

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

Example

mysql> select bitmap_count(bitmap_hash64('hello'));
+------------------------------------+
| bitmap_count(bitmap_hash64('hello')) |
+------------------------------------+
|                                  1 |
+------------------------------------+

Keywords

BITMAP_HASH,BITMAP