Query rewrite by mv support bitmap_union and bitmap_union_count roll up, aggregate functions which supports roll up is listed as following: | 查询中函数 | 物化视图中函数 | 函数上卷后 | |------------------|--------------|--------------------| | max | max | max | | min | min | min | | sum | sum | sum | | count | count | sum | | count(distinct ) | bitmap_union | bitmap_union_count | | bitmap_union | bitmap_union | bitmap_union| | bitmap_union_count | bitmap_union | bitmap_union_count | this depends on https://github.com/apache/doris/pull/29256