INTERSECT_COUNT (Lakehouse v2)
返回按维度筛选的多个位图交集中的元素个数。
Analyze 语法
Section titled “Analyze 语法”func.intersect_count(get_column(table, 'bm'), get_column(table, 'dim'), val1, val2)Analyze 示例
Section titled “Analyze 示例”func.intersect_count(get_column(table, 'bm'), get_column(table, 'tag'), 1, 2)
┌─────┐│ 150 │└─────┘SQL 语法
Section titled “SQL 语法”INTERSECT_COUNT(<bm>, <dim>, val1, val2)SQL 示例
Section titled “SQL 示例”SELECT INTERSECT_COUNT(user_bm, tag, 1, 2) FROM segments;
┌─────┐│ 150 │└─────┘