Ir al contenido

Devuelve la unión de mapas de bits de un conjunto de valores. Se suele usar con BITMAP_AGG.

func.bitmap_agg(get_column(table, 'id'))
func.bitmap_agg(get_column(table, 'id'))
┌──────────┐
│ (bitmap) │
└──────────┘
BITMAP(<id>)
SELECT BITMAP_COUNT(BITMAP_AGG(id)) FROM user_tags;
┌─────┐
│ 500 │
└─────┘