Opened 22 months ago

Last modified 10 months ago

#29850 assigned New feature

Add window support for RowRange frames

Reported by: Daniel Fuchs Owned by: felixxm
Component: Database layer (models, ORM) Version: master
Severity: Normal Keywords:
Cc: Triage Stage: Accepted
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description (last modified by felixxm)

The current RowRange frame is missing handling for several cases.

None of the following are currently supported:
RowRange(start=-2, end=-1)
ROWS BETWEEN 2 PRECEDING AND 1 PRECEDING
RowRange(start=1, end=2)
ROWS BETWEEN 1 FOLLOWING AND 2 FOLLOWING

It's also missing support for EXCLUDE.
ROWS BETWEEN 1 PRECEDING AND 1 FOLLOWING EXCLUDE CURRENT ROW


Frame exclusion is supported only in PostgreSQL 11+ and SQLite 3.28+, other databases do not support exclusion (see Oracle 18c doc, MariaDB doc, and MySQL doc).

Change History (5)

comment:1 Changed 22 months ago by Tim Graham

Summary: Poor Window Support for RowRange FramesAdd window support for RowRange frames
Triage Stage: UnreviewedAccepted
Type: UncategorizedNew feature

comment:2 Changed 22 months ago by Bryan Collazo

Owner: changed from nobody to Bryan Collazo
Status: newassigned

comment:3 Changed 20 months ago by felixxm

Description: modified (diff)
Version: 2.1master

comment:4 Changed 19 months ago by felixxm

Owner: changed from Bryan Collazo to felixxm

comment:5 Changed 10 months ago by felixxm

Description: modified (diff)

Exclusion is supported also on SQLite 3.28+ (see release notes).

Note: See TracTickets for help on using tickets.
Back to Top