limbo/core/translate
Jussi Saurio d2b1be8af7 Merge 'optimizer: fix order by removal logic' from Jussi Saurio
1. `group_by_contains_all` was incorrect - it was not checking that all
order by columns are in group by; it was instead checking that all group
by columns are in order by, which is absolutely incorrect for the
intended purpose.
2. remove ORDER BY clause if GROUP BY clause can sort the rows in the
same way.
Test failures are not related

Reviewed-by: Pere Diaz Bou <pere-altea@homail.com>

Closes #1511
2025-05-19 11:29:17 +03:00
..
optimizer Merge 'optimizer: fix order by removal logic' from Jussi Saurio 2025-05-19 11:29:17 +03:00
aggregation.rs GROUP BY: refactor logic to support cases where no sorting is needed 2025-05-08 12:39:26 +03:00
delete.rs implement IdxDelete 2025-04-24 16:23:34 +02:00
emitter.rs Mark WHERE terms as consumed instead of deleting them 2025-05-17 15:44:12 +03:00
expr.rs Rename OwnedValue -> Value 2025-05-15 09:59:46 +03:00
group_by.rs add unique field to Column 2025-05-14 11:34:11 -03:00
index.rs add CursorValidState and only save context in delete when rebalancing 2025-05-14 13:30:39 -03:00
insert.rs modify explain for MakeRecord to show index name 2025-05-14 13:30:39 -03:00
main_loop.rs Mark WHERE terms as consumed instead of deleting them 2025-05-17 15:44:12 +03:00
mod.rs Remove insertCtx from parameters and replace fix with expr rewriting 2025-05-13 12:49:16 -04:00
order_by.rs modify explain for MakeRecord to show index name 2025-05-14 13:30:39 -03:00
plan.rs Mark WHERE terms as consumed instead of deleting them 2025-05-17 15:44:12 +03:00
planner.rs Mark WHERE terms as consumed instead of deleting them 2025-05-17 15:44:12 +03:00
pragma.rs Eliminate a superfluous read transaction when doing PRAGMA user_version 2025-05-03 10:48:27 +03:00
result_row.rs GROUP BY: refactor logic to support cases where no sorting is needed 2025-05-08 12:39:26 +03:00
schema.rs remove transmute. Just iterate over columns. No need for unsafe 2025-05-18 12:32:49 -03:00
select.rs simplify simple count detection 2025-05-10 22:36:43 -03:00
subquery.rs Mark WHERE terms as consumed instead of deleting them 2025-05-17 15:44:12 +03:00
transaction.rs Fix existing resolve_label() calls to work with new system 2025-04-24 11:05:21 +03:00
update.rs feat: initial implementation of ALTER TABLE 2025-05-08 09:24:56 -03:00