#32032: Aggregate on union of querysets generates invalid SQL
-------------------------------------+-------------------------------------
     Reporter:  Jaap Roes            |                    Owner:  nobody
         Type:  New feature          |                   Status:  closed
    Component:  Database layer       |                  Version:  3.1
  (models, ORM)                      |
     Severity:  Normal               |               Resolution:  duplicate
     Keywords:  aggregate union      |             Triage Stage:
                                     |  Unreviewed
    Has patch:  0                    |      Needs documentation:  0
  Needs tests:  0                    |  Patch needs improvement:  0
Easy pickings:  0                    |                    UI/UX:  0
-------------------------------------+-------------------------------------
Changes (by felixxm):

 * status:  new => closed
 * type:  Bug => New feature
 * resolution:   => duplicate


Comment:

 As ​[https://docs.djangoproject.com/en/stable/ref/models/querysets/#union
 per the documentation], ''"only LIMIT, OFFSET, COUNT(*), ORDER BY, and
 specifying columns (i.e. slicing, count(), order_by(), and
 values()/values_list()) are allowed on the resulting QuerySet."''. See
 #27995 for a ticket to raise a helpful message about this and also a
 ticket #28519 to support these features.

 Duplicate of #28519.

-- 
Ticket URL: <https://code.djangoproject.com/ticket/32032#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/063.47b06af6e03e739da36444129093c4cd%40djangoproject.com.

Reply via email to