limbo/core/translate/optimizer
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
..
access_method.rs Remove unnecessary method 2025-05-14 09:42:26 +03:00
constraints.rs Add some utilities to constraint related structs 2025-05-14 09:42:26 +03:00
cost.rs cost.rs: simplify cost estimation 2025-05-14 09:42:26 +03:00
join.rs Mark WHERE terms as consumed instead of deleting them 2025-05-17 15:44:12 +03:00
mod.rs Mark WHERE terms as consumed instead of deleting them 2025-05-17 15:44:12 +03:00
OPTIMIZER.md Add more documentation to OPTIMIZER.MD 2025-05-14 09:42:26 +03:00
order.rs optimizer: remove order by if group by already sorts the result properly 2025-05-17 17:42:52 +03:00