v.21.6Bug Fix
Fix distributed_group_by_no_merge = 2 with GROUP BY and Aggregate Functions
Fixdistributed_group_by_no_merge = 2withGROUP BYand aggregate function wrapped into regular function (had been broken in #23546). Throw exception in case of someone trying to usedistributed_group_by_no_merge = 2with window functions. Disableoptimize_distributed_group_by_sharding_keyfor queries with window functions. #23906 (Azat Khuzhin).