- Categories:
Aggregate functions (Counting Distinct Values)
BITMAP_OR¶
Returns a bitmap that is the result of a bitwise OR operation on two input bitmaps.
Syntax¶
Arguments¶
bitmap1A bitmap returned by the BITMAP_CONSTRUCT_AGG, BITMAP_OR_AGG, or other bitmap functions.
bitmap2A bitmap returned by the BITMAP_CONSTRUCT_AGG, BITMAP_OR_AGG, or other bitmap functions.
Returns¶
A BINARY value representing a bitmap with all the bits set that are present in either input bitmap.
Examples¶
See Using Bitmaps to Compute Distinct Values for Hierarchical Aggregations.