#35396: QuerySet filters incorrectly pushed to the inner query when applied 
after a
window function filter
-------------------------------------+-------------------------------------
     Reporter:  Gary Chen            |                    Owner:  nobody
         Type:  Bug                  |                   Status:  closed
    Component:  Database layer       |                  Version:  4.2
  (models, ORM)                      |
     Severity:  Normal               |               Resolution:  wontfix
     Keywords:                       |             Triage Stage:
                                     |  Unreviewed
    Has patch:  0                    |      Needs documentation:  0
  Needs tests:  0                    |  Patch needs improvement:  0
Easy pickings:  0                    |                    UI/UX:  0
-------------------------------------+-------------------------------------
Comment (by Gary Chen):

 >>The real problem here is the ambiguity of what should be done when users
 filter against non-windowed and windowed expressions at the same time.

 I would think the ordering of the filter statements would at least make
 this clear. The django docs call out that annotation/filter ordering
 matters, so I'd expect filters before the window annotation to apply to
 the inner query, and after to apply to the outer query.
-- 
Ticket URL: <https://code.djangoproject.com/ticket/35396#comment:2>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/0107018f0b352068-73bba5c7-606b-4b95-9e51-5db7cb2dffd7-000000%40eu-central-1.amazonses.com.

Reply via email to