window 函数和 group by 子句如何交互?

How do window functions and the group by clause interact?

我确实理解window functions and group by

但是当您在同一查询中同时使用 window 函数和 group by 子句时会发生什么?

Quote from the manual:

If the query contains any window functions, these functions are evaluated after any grouping, aggregation, and HAVING filtering is performed

强调我的