Skip to main content

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
└─────────────────────────────────────┘
Explore Databend Cloud for FREE
Low-cost
Fast Analytics
Easy Data Ingestion
Elastic Scaling
Try it today