Avi Kivity
432cb02d64
cql3: select_statement: force aggregation if GROUP BY is used
...
GROUP BY is typically used with aggregation. In one case the aggregation
is implicit:
SELECT a, b, c
FROM tab
GROUP BY x, y, z
One row will appear from each group, even though no aggregation
was specified. To avoid this irregularity, rewrite this query as
SELECT first(a), first(b), first(c)
FROM tab
GROUP BY x, y, z
This allows us to have different paths for aggregations and
non-aggregations, without worrying about this special case.
2023-07-03 19:45:17 +03:00
..
2023-07-03 19:45:17 +03:00
2023-06-22 13:57:36 +03:00
2023-06-15 09:48:54 +02:00
2023-06-22 13:57:33 +03:00
2023-06-22 13:57:33 +03:00
2023-06-22 13:57:33 +03:00
2023-06-22 13:57:36 +03:00
2023-06-22 13:57:33 +03:00
2023-06-22 13:57:36 +03:00
2023-06-22 13:57:33 +03:00
2023-06-22 13:57:36 +03:00
2023-06-22 13:57:33 +03:00
2023-06-22 13:57:33 +03:00
2023-06-22 13:57:33 +03:00
2023-06-22 13:57:33 +03:00
2023-06-22 13:57:33 +03:00
2023-06-22 13:57:33 +03:00
2023-06-22 13:57:33 +03:00
2023-03-16 20:34:18 +08:00
2022-05-13 07:11:58 +02:00
2022-05-13 07:11:58 +02:00
2023-06-28 10:18:06 +02:00
2023-02-12 17:25:41 +02:00
2022-09-20 06:18:51 +03:00
2023-02-15 11:01:50 +02:00
2022-05-13 07:11:58 +02:00
2022-05-13 07:11:58 +02:00
2023-06-28 15:27:49 +03:00
2023-06-15 09:48:54 +02:00
2023-06-15 09:48:54 +02:00
2023-06-15 09:48:54 +02:00
2023-06-22 13:57:36 +03:00
2023-06-15 09:48:54 +02:00
2023-06-15 09:48:54 +02:00
2023-06-15 09:48:54 +02:00
2023-06-22 13:57:33 +03:00
2023-06-22 13:57:33 +03:00
2023-06-22 13:57:33 +03:00
2023-06-22 13:57:36 +03:00
2023-06-22 13:57:33 +03:00
2023-06-22 13:57:36 +03:00
2023-06-15 09:48:54 +02:00
2023-06-22 13:57:36 +03:00
2023-06-22 13:57:33 +03:00
2023-06-22 14:21:03 +03:00
2022-05-13 07:11:58 +02:00
2023-06-23 10:32:57 +02:00
2023-06-22 13:57:33 +03:00
2023-06-22 13:57:33 +03:00
2023-06-22 13:57:33 +03:00
2023-06-15 09:48:54 +02:00
2023-06-15 09:48:54 +02:00
2023-06-15 09:48:54 +02:00
2023-06-15 09:48:54 +02:00
2023-06-22 13:57:36 +03:00
2023-06-15 09:48:54 +02:00
2023-06-22 13:57:36 +03:00
2023-06-15 09:48:54 +02:00
2022-05-13 07:11:58 +02:00
2023-06-22 13:57:33 +03:00
2023-06-22 13:57:33 +03:00
2023-06-22 13:57:36 +03:00
2023-06-22 13:57:33 +03:00
2023-06-22 13:57:36 +03:00
2023-06-22 13:57:33 +03:00
2023-06-22 13:57:36 +03:00
2023-06-22 13:57:33 +03:00
2023-06-22 13:57:36 +03:00
2023-06-22 13:57:33 +03:00
2022-05-13 07:11:58 +02:00
2022-05-13 07:11:58 +02:00
2022-05-13 07:11:58 +02:00
2022-05-13 07:11:58 +02:00
2022-05-13 07:11:58 +02:00
2023-04-06 09:50:32 -04:00
2023-04-06 09:50:32 -04:00
2023-05-22 17:56:16 +02:00
2022-05-13 07:11:58 +02:00
2023-03-12 14:04:34 +02:00
2022-05-13 07:11:58 +02:00
2022-05-13 07:11:58 +02:00
2023-06-22 13:57:33 +03:00
2023-06-22 13:57:33 +03:00
2023-06-22 13:57:33 +03:00
2023-06-22 13:57:33 +03:00
2023-06-22 13:57:33 +03:00
2023-06-22 13:57:33 +03:00
2023-06-28 10:30:52 +02:00
2023-03-08 16:18:23 +02:00
2023-06-22 13:57:33 +03:00
2023-06-22 13:57:33 +03:00
2022-05-13 07:11:58 +02:00
2022-05-13 07:11:58 +02:00
2022-05-13 07:11:58 +02:00
2023-01-03 19:54:13 +02:00
2022-05-19 10:11:50 +02:00
2022-05-13 07:11:58 +02:00
2022-05-13 07:11:58 +02:00
2022-05-13 07:11:58 +02:00
2022-05-13 07:11:58 +02:00
2023-06-22 13:57:33 +03:00
2023-06-15 09:48:54 +02:00
2023-06-15 09:48:54 +02:00
2023-07-03 19:45:17 +03:00
2023-06-22 13:57:33 +03:00
2023-06-22 13:57:33 +03:00
2023-06-22 13:57:33 +03:00
2022-03-31 07:04:00 +03:00
2022-01-18 12:15:18 +01:00
2023-04-27 10:24:46 +03:00
2023-06-23 10:32:57 +02:00
2023-06-22 13:57:33 +03:00
2023-06-23 10:32:57 +02:00
2022-09-28 09:54:59 +03:00
2023-06-22 13:57:36 +03:00
2023-02-19 12:57:40 +08:00
2023-06-22 14:21:03 +03:00
2022-09-08 15:25:36 +02:00
2023-06-22 13:57:33 +03:00
2023-06-22 13:57:33 +03:00