INTERSECT_COUNT (Lakehouse v2)
Returns the count of elements in the intersection of multiple bitmaps filtered by dimension.
Analyze Syntax
Section titled “Analyze Syntax”func.intersect_count(get_column(table, 'bm'), get_column(table, 'dim'), val1, val2)Analyze Examples
Section titled “Analyze Examples”func.intersect_count(get_column(table, 'bm'), get_column(table, 'tag'), 1, 2)
┌─────┐│ 150 │└─────┘SQL Syntax
Section titled “SQL Syntax”INTERSECT_COUNT(<bm>, <dim>, val1, val2)SQL Examples
Section titled “SQL Examples”SELECT INTERSECT_COUNT(user_bm, tag, 1, 2) FROM segments;
┌─────┐│ 150 │└─────┘