Skip to content

Commit

Permalink
Fix known issues
Browse files Browse the repository at this point in the history
  • Loading branch information
techdocsmith authored Nov 1, 2023
1 parent 8daf3e1 commit c1257ca
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions docs/querying/sql-window-functions.md
Original file line number Diff line number Diff line change
Expand Up @@ -218,9 +218,8 @@ GROUP BY channel, __time, delta

The following are known issues with window functions:

- Aggregates with ORDER BY specified are processed in the window: ROWS BETWEEN UNBOUNDED PRECEDING AND CURRENT ROW
This is different than other databases that use the default of RANGE BETWEEN UNBOUNDED PRECEDING AND CURRENT ROW
In cases where the order column is unique there is no difference between RANGE / ROWS
windows with RANGE specifications are handled as ROWS
- Aggregates with ORDER BY specified are processed in the window: ROWS BETWEEN UNBOUNDED PRECEDING AND CURRENT ROW
This behavior differs from other databases that use the default of RANGE BETWEEN UNBOUNDED PRECEDING AND CURRENT ROW.
In cases where the order column is unique there is no difference between RANGE / ROWS; windows with RANGE specifications are handled as ROWS.
- LEAD/LAG ignores the default value
- LAST_VALUE returns the last value of the window even when you include an ORDER BY clause
- LAST_VALUE returns the last value of the window even when you include an ORDER BY clause

0 comments on commit c1257ca

Please sign in to comment.