コンテンツにスキップ

ディメンションで絞り込んだ複数のビットマップの積集合に含まれる要素数を返します。

func.intersect_count(get_column(table, 'bm'), get_column(table, 'dim'), val1, val2)
func.intersect_count(get_column(table, 'bm'), get_column(table, 'tag'), 1, 2)
┌─────┐
│ 150 │
└─────┘
INTERSECT_COUNT(<bm>, <dim>, val1, val2)
SELECT INTERSECT_COUNT(user_bm, tag, 1, 2) FROM segments;
┌─────┐
│ 150 │
└─────┘