Using aggregate functions in a materialized view in ClickHouse can lead to surprising results if you don't define them properly.