Skip to main content
Returns the union of a set of bitmap values and returns the cardinality of the union. This function is supported from v2.3.

Syntax

Parameters

value: a set of bitmap values. The supported data type is BITMAP.

Return value

Returns a value of the BIGINT type.

Examples

Calculate the unique views (UVs) of a web page. If user_id is of the INT type, the latter two queries are equivalent.