Files
doris/docs/en/sql-reference/sql-functions/bitmap-functions/bitmap_or.md

1.2 KiB

title, language
title language
bitmap_or en

bitmap_or

description

Syntax

BITMAP BITMAP_OR(BITMAP lhs, BITMAP rhs)

Compute union of two input bitmaps, returns the new bitmap.

example

mysql> select bitmap_count(bitmap_or(to_bitmap(1), to_bitmap(2))) cnt;
+------+
| cnt  |
+------+
|    2 |
+------+

mysql> select bitmap_count(bitmap_or(to_bitmap(1), to_bitmap(1))) cnt;
+------+
| cnt  |
+------+
|    1 |
+------+

keyword

BITMAP_OR,BITMAP