ReferenceSQL FunctionsScalar FunctionsBitmap FunctionsBITMAP_COUNTVeloDB Cloud 4.x·Apache Doris 3.x·"Since X.Y" tags refer to Doris versionsversion mapping →On this pageBITMAP_COUNTDescription Count the number of elements in the input BITMAP Syntax BITMAP_COUNT(<bitmap>) Parameters ParameterDescription<bitmap>a BITMAP Return Value Returns an integer Examples select bitmap_count(to_bitmap(1)) cnt; +------+| cnt |+------+| 1 |+------+