diff options
| author | Simon Charette <charette.s@gmail.com> | 2022-08-10 08:22:01 -0400 |
|---|---|---|
| committer | Mariusz Felisiak <felisiak.mariusz@gmail.com> | 2022-08-15 08:26:26 +0200 |
| commit | f387d024fc75569d2a4a338bfda76cc2f328f627 (patch) | |
| tree | 61994be69d4dfa545158f7e887f0673ec281e479 /django/db/models/fields | |
| parent | f3f9d03edf17ccfa17263c7efa0b1350d1ac9278 (diff) | |
Refs #28333 -- Added partial support for filtering against window functions.
Adds support for joint predicates against window annotations through
subquery wrapping while maintaining errors for disjointed filter
attempts.
The "qualify" wording was used to refer to predicates against window
annotations as it's the name of a specialized Snowflake extension to
SQL that is to window functions what HAVING is to aggregates.
While not complete the implementation should cover most of the common
use cases for filtering against window functions without requiring
the complex subquery pushdown and predicate re-aliasing machinery to
deal with disjointed predicates against columns, aggregates, and window
functions.
A complete disjointed filtering implementation should likely be
deferred until proper QUALIFY support lands or the ORM gains a proper
subquery pushdown interface.
Diffstat (limited to 'django/db/models/fields')
| -rw-r--r-- | django/db/models/fields/related_lookups.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/django/db/models/fields/related_lookups.py b/django/db/models/fields/related_lookups.py index 17a8622ff9..1a845a1f7f 100644 --- a/django/db/models/fields/related_lookups.py +++ b/django/db/models/fields/related_lookups.py @@ -14,6 +14,7 @@ from django.utils.deprecation import RemovedInDjango50Warning class MultiColSource: contains_aggregate = False + contains_over_clause = False def __init__(self, alias, targets, sources, field): self.targets, self.sources, self.field, self.alias = ( |
