- Categories:
Aggregate functions (Counting Distinct Values)
BITMAP_ABSOLUTE_POSITION¶
Computes the absolute bit position from a bucket number and a relative bit position. This is the inverse of the BITMAP_BUCKET_NUMBER and BITMAP_BIT_POSITION functions.
Syntax¶
Arguments¶
bucket_numberThe bucket number (returned by BITMAP_BUCKET_NUMBER).
relative_positionThe relative bit position within the bucket (returned by BITMAP_BIT_POSITION).
Returns¶
An INTEGER representing the original absolute position (value).
Examples¶
See Using Bitmaps to Compute Distinct Values for Hierarchical Aggregations.