-
Notifications
You must be signed in to change notification settings - Fork 3.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
sql: Add support for specifying window frames for window functions
WIP on #26464: ROWS mode is fully supported whereas RANGE works only with UNBOUNDED PRECEDING/CURRENT ROW/UNBOUNDED FOLLOWING boundaries (same as in PostgreSQL). Current implementation of aggregate functions is naive (it simply computes the value of aggregate directly and discards all the previous computations which results in quadratic time). Release note (sql change): CockroachDB now supports custom frame specification for window functions using ROWS (fully-supported) and RANGE ('value' PRECEDING and 'value' FOLLOWING are not supported) modes.
- Loading branch information
1 parent
ed8f30e
commit b007aa2
Showing
11 changed files
with
937 additions
and
122 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.