Uh oh!
There was an error while loading. Please reload this page.
User guide lists window functions - #6402
Conversation
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
| # Window Functions | ||
| Window functions calculate a value for a set of rows within a result set. |
There was a problem hiding this comment.
We can probably copy some/all of the description from the postgres docs rather than having to reinvent it: https://www.postgresql.org/docs/current/tutorial-window.html
There was a problem hiding this comment.
Thanks for the feedback! I stitched together a description of window functions from the postgres docs and added a sub-section describing the syntax.
(EDIT: Just noticed that named windows are now supported, I'll add those the syntax description next) Named window functions are described also.
Uh oh!
There was an error while loading. Please reload this page.
| ```sql | ||
| SELECT sum(salary) OVER w, avg(salary) OVER w | ||
| FROM empsalary | ||
| WINDOW w AS (PARTITION BY depname ORDER BY salary DESC); |
There was a problem hiding this comment.
This feature (named window functions) was added just a few days ago by @berkaysynnada#6419 🎉
Which issue does this PR close?
Closes#6338.
Rationale for this change
List window functions in the user guide
What changes are included in this PR?
Are these changes tested?
Are there any user-facing changes?