#31005: Incorrect GROUP BY aggregate values when filtering by annotation on
reverse-related LEFT OUTER JOIN
-------------------------------------+-------------------------------------
     Reporter:  Oroku Saki           |                    Owner:  nobody
         Type:  Uncategorized        |                   Status:  closed
    Component:  Database layer       |                  Version:  1.11
  (models, ORM)                      |
     Severity:  Normal               |               Resolution:  duplicate
     Keywords:                       |             Triage Stage:
                                     |  Unreviewed
    Has patch:  0                    |      Needs documentation:  0
  Needs tests:  0                    |  Patch needs improvement:  0
Easy pickings:  0                    |                    UI/UX:  0
-------------------------------------+-------------------------------------
Changes (by Simon Charette):

 * status:  new => closed
 * resolution:   => duplicate


Comment:

 That's [https://docs.djangoproject.com/en/2.2/topics/db/aggregation
 /#combining-multiple-aggregations a documented behavior of multiple
 annotations on multi-valued relationships] see #10060 and #28296 which
 attempts to address it by allowing aggregates to be wrapped in subqueries.

-- 
Ticket URL: <https://code.djangoproject.com/ticket/31005#comment:1>
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/067.20e196ba043e6522c8d778aa5b93f63d%40djangoproject.com.

Reply via email to