Skip to content

Commit

Permalink
Merge pull request #4164 from soerenwolfers/patch-39
Browse files Browse the repository at this point in the history
Update window_functions.md
  • Loading branch information
szarnyasg authored Nov 28, 2024
2 parents 079f962 + e06efef commit c820300
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion docs/sql/functions/window_functions.md
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,8 @@ Window functions cannot access values outside of the partition containing the ro

Ordering is also optional, but without it the results of [general-purpose window functions](#general-purpose-window-functions) and [order-sensitive aggregate functions]({% link docs/sql/functions/aggregates.md %}#order-by-clause-in-aggregate-functions), and the order of [framing](#framing) are not well-defined.
Each partition is ordered using the same ordering clause.
It is not currently possible to specify the aggregation order of [order-sensitive aggregate functions]({% link docs/sql/functions/aggregates.md %}#order-by-clause-in-aggregate-functions) (e.g., `array_agg(x ORDER BY y)`) other than by the order in the `OVER` specification.

> It is not currently possible to specify the aggregation order of window functions other than via the order in the `OVER` specification. In particular, it is not possible to use an aggregation order different from the frame order, e.g., `last_value(x ORDER BY y) OVER (ORDER BY z)`.
Here is a table of power generation data, available as a CSV file ([`power-plant-generation-history.csv`](/data/power-plant-generation-history.csv)). To load the data, run:

Expand Down

0 comments on commit c820300

Please sign in to comment.