Files
doris/docs/en/sql-manual/sql-functions/bitmap-functions/bitmap_contains.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.2 KiB

title, language
title language
bitmap_contains en

bitmap_contains

description

Syntax

B00LEAN BITMAP_CONTAINS(BITMAP bitmap, BIGINT input)

Calculates whether the input value is in the Bitmap column and returns a Boolean value.

example

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

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

keyword

BITMAP_CONTAINS,BITMAP