Files
doris/docs/en/sql-manual/sql-functions/bitmap-functions/bitmap_has_any.md
jiafeng.zhang 267e8b67c2 [refactor][doc]The new version of the document is online (#9272)
replace the `docs/` with `new-docs/`
2022-04-28 15:22:34 +08:00

1.3 KiB

title, language
title language
bitmap_has_any en

bitmap_has_any

description

Syntax

B00LEAN BITMAP_HAS_ANY(BITMAP lhs, BITMAP rhs)

Calculate whether there are intersecting elements in the two Bitmap columns. The return value is Boolean.

example

mysql> select bitmap_has_any(to_bitmap(1),to_bitmap(2)) cnt;
+------+
| cnt  |
+------+
|    0 |
+------+

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

keyword

BITMAP_HAS_ANY,BITMAP