forked from cockroachdb/cockroach
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
28262: sql: add support for optional frame exclusion r=yuzefovich a=yuzefovich Adds support for optional frame exclusion clause in the specification of window frames. This feature is described in https://www.postgresql.org/docs/12/sql-expressions.html. Whenever a non-default frame exclusion is present, it forces the execution to fall back to a naive quadratic approach. This means that for every row in a window frame we will compute the window function from scratch, without making use of any previous computations. Additionally, the presence of a non-default frame exclusion breaks necessary assumptions for utilizing a sliding window approach for min, max, sum, and avg functions, so those also fall back to a naive quadratic approach. Closes: cockroachdb#27100. Release note (sql change): CockroachDB now supports optional frame exclusion clause in the specification of window frames. Co-authored-by: Yahor Yuzefovich <yahor@cockroachlabs.com>
- Loading branch information
Showing
29 changed files
with
2,049 additions
and
329 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
Oops, something went wrong.