Files
turso/core
Jussi Saurio 020f083b98 Merge 'Fix handling of non-aggregate expressions' from Piotr Rżysko
This PR has two parts:
1. The first commit refactors how information about which registers
should be populated in the aggregation loop is calculated and
propagated. This simplification revealed a bug, which is addressed as
part of the same commit (see the included test).
2. The second commit fixes incorrect behavior for queries where complex
expressions include both aggregate and non-aggregate components. For
example, the following query previously produced incorrect results:
```sql
SELECT
  CASE WHEN c0 != 'x' THEN group_concat(c1, ',') ELSE 'x' END
FROM t0
GROUP BY c0;
```
In such cases, non-aggregate columns like `c0` were not available during
the result construction for each group, leading to incorrect evaluation.

Reviewed-by: Jussi Saurio <jussi.saurio@gmail.com>

Closes #1780
2025-06-20 21:56:35 +03:00
..
2025-05-23 12:37:03 -03:00
2025-05-15 09:59:46 +03:00
2025-05-15 09:59:46 +03:00
2025-05-30 13:07:31 +02:00
2025-06-18 17:40:53 +02:00
2025-05-15 09:59:46 +03:00
2025-01-28 14:55:38 -05:00
2025-06-11 14:19:06 -03:00
2025-01-28 14:55:38 -05:00
wip
2025-03-29 22:02:49 +01:00
2024-12-24 18:04:30 +01:00
2025-06-17 19:33:23 +02:00