Add support for materialized view complex group by feature.