📣
TiDB Cloud Premium is now in public preview. Unlimited growth, instant elasticity, advanced security for enterprise workloads. Try it out →

BITMAP_SUBSET_IN_RANGE



Generates a sub-bitmap of the source bitmap within a specified range.

Syntax

BITMAP_SUBSET_IN_RANGE( <bitmap>, <start>, <end> )

Examples

SELECT BITMAP_SUBSET_IN_RANGE(BUILD_BITMAP([5,7,9]), 6, 9)::String; ┌───────────────────────────────────────────────────────────────┐ │ bitmap_subset_in_range(build_bitmap([5, 7, 9]), 6, 9)::string │ ├───────────────────────────────────────────────────────────────┤ │ 7 │ └───────────────────────────────────────────────────────────────┘

Was this page helpful?