v.21.3Backward Incompatible Changes
Fix TTL Creation for Functions Matching ORDER BY Key in ClickHouse
Fix creation ofTTLin cases, when its expression is a function and it is the same asORDER BYkey. Now it's allowed to set custom aggregation to primary key columns inTTLwithGROUP BY. Backward incompatible: For primary key columns, which are not inGROUP BYand aren't set explicitly now is applied functionanyinstead ofmax, when TTL is expired. Also if you use TTL withWHEREorGROUP BYyou can see exceptions at merges, while making rolling update. #15450 (Anton Popov).