v.22.9Bug Fix
Fixed Unknown Identifier Exception for WINDOW ORDER BY/PARTITION BY Expressions
Fixed Unknown identifier (aggregate-function) exception which appears when a user tries to calculate WINDOW ORDER BY/PARTITION BY expressions over aggregate functions. #39762 (Vladimir Chebotaryov).