Files
turso/core
Pere Diaz Bou c7d40806fd core: Avg aggregation function
Simple implementation for aggregation functions. The code added is
purposely so that we can add things like `CEILING(avg(n))` in the future. Aggregation function
impose a higher level of complexity that requires us to plan ahead
several things:

* simple avg: `select avg(id) from users`
* nested avg: `select ceiling(avg(id)) from users`
* avg with other columns: `select ceiling(avg(id)), * from users` (yes,
  this is valid sqllite). For now I'm nullifying extra columns for
  simplicity.
* avg with other agg functions: `select avg(id), sum(id) from users`.
  This should be supported.
* At last -- Order By is a painful enough case to treat alone (not done
  in this pr)

Signed-off-by: Pere Diaz Bou <pere-altea@hotmail.com>
2024-06-30 12:48:19 +02:00
..
2024-06-29 17:36:36 +03:00
2024-03-03 12:44:45 +02:00
2024-06-19 20:37:17 +02:00
2024-06-21 13:10:21 +03:00
2024-06-30 12:48:19 +02:00
2024-06-30 12:48:19 +02:00
2024-06-30 12:48:19 +02:00