Re: [Django] #36292: Annotating an aggregate function over a group including annotations or transforms followed by a column references crashes with IndexError (was: Group By Aggregations are Breaking in 5.2)

2 views
Skip to first unread message

Django

unread,
Apr 2, 2025, 11:28:42 PM4/2/25
to django-...@googlegroups.com
#36292: Annotating an aggregate function over a group including annotations or
transforms followed by a column references crashes with IndexError
-------------------------------------+-------------------------------------
Reporter: Patrick Altman | Owner: Simon
| Charette
Type: Bug | Status: assigned
Component: Database layer | Version: 5.2
(models, ORM) |
Severity: Release blocker | Resolution:
Keywords: | Triage Stage: Accepted
Has patch: 1 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by Simon Charette):

* has_patch: 0 => 1
* summary: Group By Aggregations are Breaking in 5.2 =>
Annotating an aggregate function over a group including annotations or
transforms followed by a column references crashes with IndexError

--
Ticket URL: <https://code.djangoproject.com/ticket/36292#comment:2>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
Reply all
Reply to author
Forward
0 new messages