Window Frame Doesn't Work In SubQuery
When using a Window and frame=RowRange(start=-1, end=1), the query works fine except when it's used in a Subquery. That results in the following error:
start argument must be a negative integer, zero, or None, but got 'Value(-1)'
Change History
(8)
Component: |
Uncategorized → Database layer (models, ORM)
|
Triage Stage: |
Unreviewed → Accepted
|
Owner: |
changed from nobody to Mariusz Felisiak
|
Status: |
new → assigned
|
Has patch: |
set
|
Keywords: |
Window added
|
Triage Stage: |
Accepted → Ready for checkin
|
Resolution: |
→ fixed
|
Status: |
assigned → closed
|
It could be useful if you provided some sample code (ideal would be a test for
tests/expressions_window/tests.py
).