to_bitmap
入力は 0 から 18446744073709551615 までの値を持つ符号なし bigint であり、出力はこの要素を含む bitmap です。この関数は主に StarRocks テーブルの bitmap フィールドに整数フィールドをインポートするための stream load タスクで使用されます。例えば:
cat data | curl --location-trusted -u user:passwd -T - \
-H "columns: dt,page,user_id, user_id=to_bitmap(user_id)" \
http://host:8410/api/test/testDb/_stream_load
構文
BITMAP TO_BITMAP(expr)