Re: [Django] #35042: Queryset count does not work after union when annotations on aggregation are unused.

10 views
Skip to first unread message

Django

unread,
Dec 15, 2023, 3:22:01 PM12/15/23
to django-...@googlegroups.com
#35042: Queryset count does not work after union when annotations on aggregation
are unused.
-------------------------------------+-------------------------------------
Reporter: Marcin | Owner: Simon
| Charette
Type: Bug | Status: assigned
Component: Database layer | Version: 4.2
(models, ORM) |
Severity: Normal | Resolution:
Keywords: | Triage Stage: Accepted
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by Simon Charette):

* owner: nobody => Simon Charette
* status: new => assigned


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

Django

unread,
Dec 15, 2023, 9:03:08 PM12/15/23
to django-...@googlegroups.com
#35042: Queryset count does not work after union when annotations on aggregation
are unused.
-------------------------------------+-------------------------------------
Reporter: Marcin | Owner: Simon
| Charette
Type: Bug | Status: assigned
Component: Database layer | Version: 4.2
(models, ORM) |
Severity: Normal | 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


--
Ticket URL: <https://code.djangoproject.com/ticket/35042#comment:3>

Django

unread,
Dec 16, 2023, 2:23:36 PM12/16/23
to django-...@googlegroups.com
#35042: Queryset count does not work after union when annotations on aggregation
are unused.
-------------------------------------+-------------------------------------
Reporter: Marcin | Owner: Simon
| Charette
Type: Bug | Status: assigned
Component: Database layer | Version: 4.2
(models, ORM) |
Severity: Normal | 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/35042#comment:4>

Django

unread,
Dec 17, 2023, 10:30:27 AM12/17/23
to django-...@googlegroups.com
#35042: Queryset count does not work after union when annotations on aggregation
are unused.
-------------------------------------+-------------------------------------
Reporter: Marcin | Owner: Simon
| Charette
Type: Bug | Status: closed

Component: Database layer | Version: 4.2
(models, ORM) |
Severity: Normal | 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@…>):

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


Comment:

In [changeset:"77278929c86168f075600d9d8c8e76a4792e672b" 7727892]:
{{{
#!CommitTicketReference repository=""
revision="77278929c86168f075600d9d8c8e76a4792e672b"
Fixed #35042 -- Fixed a count() crash on combined queries.

Regression in 59bea9efd2768102fc9d3aedda469502c218e9b7.

Thanks Marcin for the report.
}}}

--
Ticket URL: <https://code.djangoproject.com/ticket/35042#comment:5>

Reply all
Reply to author
Forward
0 new messages