Re: [Django] #36292: Annotating an aggregate function over a group including annotations or transforms followed by a column references crashes with IndexError

7 views
Skip to first unread message

Django

unread,
Apr 3, 2025, 11:53:49 AM4/3/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: Ready for
| checkin
Has patch: 1 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by Mariusz Felisiak):

* stage: Accepted => Ready for checkin

--
Ticket URL: <https://code.djangoproject.com/ticket/36292#comment:3>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

Django

unread,
Apr 3, 2025, 12:35:03 PM4/3/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: closed
Component: Database layer | Version: 5.2
(models, ORM) |
Severity: Release blocker | Resolution: fixed
Keywords: | Triage Stage: Ready for
| checkin
Has patch: 1 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by Mariusz Felisiak <felisiak.mariusz@…>):

* resolution: => fixed
* status: assigned => closed

Comment:

In [changeset:"543e17c4405dfdac4f18759fc78b190406d14239" 543e17c]:
{{{#!CommitTicketReference repository=""
revision="543e17c4405dfdac4f18759fc78b190406d14239"
Fixed #36292 -- Fixed crash when aggregating over a group mixing
transforms and references.

Regression in 65ad4ade74dc9208b9d686a451cd6045df0c9c3a.

Refs #28900

Thanks Patrick Altman for the report.
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/36292#comment:4>

Django

unread,
Apr 3, 2025, 12:35:47 PM4/3/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: closed
Component: Database layer | Version: 5.2
(models, ORM) |
Severity: Release blocker | Resolution: fixed
Keywords: | Triage Stage: Ready for
| 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:"317690403a40fbaf52c6abcbc8d39f199c9b5102" 3176904]:
{{{#!CommitTicketReference repository=""
revision="317690403a40fbaf52c6abcbc8d39f199c9b5102"
[5.2.x] Fixed #36292 -- Fixed crash when aggregating over a group mixing
transforms and references.

Regression in 65ad4ade74dc9208b9d686a451cd6045df0c9c3a.

Refs #28900

Thanks Patrick Altman for the report.

Backport of 543e17c4405dfdac4f18759fc78b190406d14239 from main
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/36292#comment:5>
Reply all
Reply to author
Forward
0 new messages