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

BITMAP_MAX



Gets the maximum value in the bitmap.

Syntax

BITMAP_MAX( <bitmap> )

Examples

SELECT BITMAP_MAX(BUILD_BITMAP([1,4,5])); ┌─────────────────────────────────────┐ │ bitmap_max(build_bitmap([1, 4, 5])) │ ├─────────────────────────────────────┤ │ 5 │ └─────────────────────────────────────┘

Was this page helpful?