#34975: aggregate() crashes when referencing existing aggregations or window
expressions through conditional expressions
-------------------------------------+-------------------------------------
     Reporter:  Sergey Nesterenko    |                    Owner:  Simon
                                     |  Charette
         Type:  Bug                  |                   Status:  closed
    Component:  Database layer       |                  Version:  4.2
  (models, ORM)                      |
     Severity:  Release blocker      |               Resolution:  fixed
     Keywords:  QuerySet, Window,    |             Triage Stage:  Ready for
  Aggregate, F                       |  checkin
    Has patch:  1                    |      Needs documentation:  0
  Needs tests:  0                    |  Patch needs improvement:  0
Easy pickings:  0                    |                    UI/UX:  0
-------------------------------------+-------------------------------------

Comment (by Mariusz Felisiak <felisiak.mariusz@…>):

 In [changeset:"49f1ced86398177c125e256d7e812eb34fae672e" 49f1ced8]:
 {{{
 #!CommitTicketReference repository=""
 revision="49f1ced86398177c125e256d7e812eb34fae672e"
 [5.0.x] Fixed #34975 -- Fixed crash of conditional aggregate() over
 aggregations.

 Adjustments made to solve_lookup_type to defer the resolving of
 references for summarized aggregates failed to account for similar
 requirements for lookup values which can also reference annotations
 through Aggregate.filter.

 Regression in b181cae2e3697b2e53b5b67ac67e59f3b05a6f0d.

 Refs #25307.

 Thanks Sergey Nesterenko for the report.

 Backport of 7530cf3900ab98104edcde69e8a2a415e82b345a from main
 }}}

-- 
Ticket URL: <https://code.djangoproject.com/ticket/34975#comment:16>
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/0107018be322e23c-ef1ec9f9-8f7a-4446-a5dd-074a6f452741-000000%40eu-central-1.amazonses.com.

Reply via email to