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

BITMAP_SUBSET_LIMIT



Generates a sub-bitmap of the source bitmap, beginning with a range from the start value, with a size limit.

Syntax

BITMAP_SUBSET_LIMIT( <bitmap>, <start>, <limit> )

Examples

SELECT BITMAP_SUBSET_LIMIT(BUILD_BITMAP([1,4,5]), 2, 2)::String; ┌────────────────────────────────────────────────────────────┐ │ bitmap_subset_limit(build_bitmap([1, 4, 5]), 2, 2)::string │ ├────────────────────────────────────────────────────────────┤ │ 4,5 │ └────────────────────────────────────────────────────────────┘

Was this page helpful?