现有 a, b, c, d 四列,(a, b, c)为聚合键,d 为 bitmap 列。
在此基础上想要建立物化视图,如下
CREATE MATERIALIZED VIEW material_test_view AS
select a, b, c, bitmap_max(d)
from material_test
group by a, b, c;
ERROR: select list expression not produced by aggregation output (missing from GROUP BY clause?): bitmap_max(d
)