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
..
2022-03-17 11:10:03 +01:00
2023-03-01 13:03:56 +01:00
2023-03-01 13:03:56 +01:00
2023-03-01 13:03:56 +01:00
2022-04-28 10:44:14 +02:00
2023-03-01 13:03:56 +01:00
2021-05-17 07:36:57 +02:00
2022-04-28 10:44:14 +02:00
2021-05-17 07:36:57 +02:00
2023-03-01 13:03:56 +01:00
2023-02-28 12:21:37 +01:00
2021-07-29 06:24:12 +02:00
2023-04-17 06:55:32 +02:00
2023-02-28 12:21:37 +01:00
2021-07-29 06:24:12 +02:00
2023-09-18 22:12:40 +02:00
2021-02-17 14:24:42 +01:00
2020-11-13 22:26:30 +01:00
2023-09-18 22:12:40 +02:00
2022-03-10 10:18:31 +01:00
2021-02-17 14:24:42 +01:00
2023-04-17 06:55:32 +02:00
2023-01-17 11:49:15 +01:00
2021-02-17 14:24:42 +01:00
2023-09-18 22:12:40 +02:00
2020-05-05 07:34:34 +02:00
2023-07-21 12:54:38 +02:00
2021-05-17 09:46:09 +02:00
2023-04-17 06:55:32 +02:00
2022-03-10 10:18:31 +01:00
2023-10-09 09:55:52 +02:00
2023-03-01 13:03:56 +01:00
2023-06-23 09:29:35 +02:00
2021-01-14 17:50:04 +01:00
2021-01-14 17:50:04 +01:00
2021-01-14 17:50:04 +01:00
2021-01-14 17:50:04 +01:00
2019-12-18 09:11:39 +01:00
2023-09-18 22:12:40 +02:00
2023-03-01 13:03:56 +01:00
2021-01-14 17:50:04 +01:00
2021-01-14 17:50:04 +01:00
2021-01-14 17:50:04 +01:00
2021-01-14 17:50:04 +01:00
2020-06-03 21:02:48 +02:00
2023-05-22 14:02:01 +02:00
2020-05-13 09:14:40 +02:00
2023-01-16 07:54:00 +01:00
2021-01-14 17:50:04 +01:00
2021-01-14 17:50:04 +01:00
2021-01-14 17:50:04 +01:00
2020-06-03 21:02:48 +02:00
2020-06-03 09:24:26 +02:00
2020-07-01 06:16:32 +02:00
2020-08-03 08:52:28 +02:00
2020-09-01 09:56:42 +02:00
2020-11-02 08:35:24 +01:00
2021-02-01 09:07:36 +01:00
2021-02-19 09:03:06 +01:00
2021-04-06 08:15:17 +02:00
2021-05-12 10:42:01 +02:00
2021-05-06 08:45:23 +02:00
2021-05-13 08:53:44 +02:00
2021-06-02 10:58:39 +02:00
2021-12-07 06:28:08 +01:00
2022-01-04 10:50:23 +01:00
2022-02-02 07:17:57 +01:00
2022-04-11 08:59:58 +02:00
2023-07-10 05:59:35 +02:00
2020-05-13 09:14:40 +02:00
2020-06-03 09:24:26 +02:00
2020-07-01 06:16:32 +02:00
2020-08-03 08:52:28 +02:00
2020-09-01 09:56:42 +02:00
2020-11-02 08:35:24 +01:00
2021-02-01 09:07:36 +01:00
2021-02-19 09:03:06 +01:00
2021-04-06 08:15:17 +02:00
2023-04-17 06:55:32 +02:00
2022-04-28 10:44:14 +02:00
2020-10-01 07:22:28 +02:00
2020-11-02 08:35:24 +01:00
2020-12-01 06:24:16 +01:00
2021-01-04 08:31:51 +01:00
2021-02-01 09:07:36 +01:00
2021-02-19 09:03:06 +01:00
2021-04-06 08:15:17 +02:00
2021-05-12 10:42:01 +02:00
2021-05-06 08:45:23 +02:00
2021-05-13 08:53:44 +02:00
2021-06-02 10:58:39 +02:00
2021-07-16 20:30:21 +02:00
2021-12-07 06:28:08 +01:00
2023-05-22 14:02:01 +02:00
2022-09-19 05:19:01 +02:00
2021-05-06 08:45:23 +02:00
2021-05-13 08:53:44 +02:00
2021-06-02 10:58:39 +02:00
2021-07-01 09:42:54 +02:00
2021-08-02 06:55:40 +02: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
2021-12-07 06:28:08 +01:00
2022-01-04 10:50:23 +01:00
2022-02-02 07:17:57 +01:00
2022-04-11 08:59:58 +02:00
2022-07-04 08:13:41 +02:00
2022-08-03 08:46:31 +02:00
2022-10-04 09:10:04 +02:00
2023-02-01 09:44:04 +01:00
2023-02-14 08:18:40 +01:00
2023-05-03 13:42:00 +02:00
2023-07-03 08:16:55 +02:00
2023-09-04 11:58:37 +02:00
2023-10-04 09:22:26 -03:00
2023-11-01 06:10:30 +01:00
2023-04-17 06:55:32 +02:00
2022-10-07 11:22:16 +02:00
2022-02-02 07:17:57 +01:00
2023-04-17 06:55:32 +02:00
2022-04-11 08:59:58 +02:00
2022-06-01 12:25:33 +02:00
2022-07-04 08:13:41 +02:00
2022-08-03 08:46:31 +02:00
2022-10-04 09:10:04 +02:00
2023-02-01 09:44:04 +01:00
2023-02-14 08:18:40 +01:00
2023-04-17 06:55:32 +02:00
2022-09-05 05:21:23 +02:00
2022-10-04 09:10:04 +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-02-01 09:44:04 +01:00
2023-02-14 08:18:40 +01:00
2023-04-05 06:09:31 +02:00
2023-05-03 13:42:00 +02:00
2023-07-03 08:16:55 +02:00
2023-09-04 11:58:37 +02:00
2023-10-04 09:22:26 -03:00
2023-11-01 06:10:30 +01:00
2023-09-18 22:12:40 +02:00
2023-05-03 13:42:00 +02:00
2023-06-05 08:21:56 -03:00
2023-07-03 08:16:55 +02:00
2023-08-01 13:30:05 -03:00
2023-09-04 11:58:37 +02:00
2023-10-15 10:27:11 +02:00
2023-11-01 06:10:30 +01:00
2023-11-23 06:09:08 +01:00
2023-11-19 16:31:46 +01:00
2023-11-16 12:23:42 +01:00
2023-11-17 08:12:36 +01:00
2023-11-01 08:22:47 +01:00
2023-11-01 08:16:14 +01:00