1
0
mirror of https://github.com/django/django.git synced 2025-02-09 00:45:23 +00:00
Simon Charette e76cc93b01
Fixed #34987 -- Fixed queryset crash when mixing aggregate and window annotations.
Regression in f387d024fc75569d2a4a338bfda76cc2f328f627.

Just like `OrderByList` the `ExpressionList` expression used to wrap
`Window.partition_by` must implement `get_group_by_cols` to ensure the
necessary grouping when mixing window expressions with aggregate
annotations is performed against the partition members and not the
partition expression itself.

This is necessary because while `partition_by` is implemented as
a source expression of `Window` it's actually a fragment of the WINDOW
expression at the SQL level and thus it should result in a group by its
members and not the sum of them.

Thanks ElRoberto538 for the report.
2023-11-23 06:09:08 +01:00
..
2023-04-17 06:55:32 +02:00
2023-04-17 06:55:32 +02:00
2023-07-21 12:54:38 +02:00
2023-04-17 06:55:32 +02:00
2023-10-09 09:55:52 +02:00
2022-02-02 07:17:57 +01:00
2023-04-17 06:55:32 +02:00
2020-10-01 07:22:28 +02:00
2020-12-01 06:24:16 +01:00
2021-01-04 08:31:51 +01:00
2021-09-01 07:40:01 +02:00
2021-10-05 09:07:26 +02:00
2021-11-01 10:18:49 +01:00
2022-02-02 07:17:57 +01:00
2023-04-17 06:55:32 +02:00
2022-02-02 07:17:57 +01:00
2023-04-17 06:55:32 +02:00
2023-04-17 06:55:32 +02:00
2022-09-05 05:21:23 +02:00
2022-11-01 06:54:19 +01:00
2022-12-06 09:56:43 +01:00
2023-01-02 08:10:59 +01:00
2023-04-05 06:09:31 +02:00
2023-06-05 08:21:56 -03:00
2023-08-01 13:30:05 -03:00
2023-11-01 08:22:47 +01:00