[MDEV-16366] Simplify query expressions over UNION/EXCEPT/INTERSECT Created: 2018-06-01 Updated: 2023-08-24 |
|
| Status: | Stalled |
| Project: | MariaDB Server |
| Component/s: | Optimizer |
| Fix Version/s: | None |
| Type: | Task | Priority: | Major |
| Reporter: | Igor Babaev | Assignee: | Igor Babaev |
| Resolution: | Unresolved | Votes: | 0 |
| Labels: | None | ||
| Description |
|
The goal of this task is to simplify/optimize query expressions over UNION/EXCEPT/INTERSECT: 1. convert UNION/EXCEPT/INTERSECT ALL into UNION/EXCEPT/INTERSECT DISTINCT whenever it's possible.
2. Remove unnecessary brackets E.g.
3. Swap operands in order to omit brackets
In this task it is assumed that query expressions does not contain EXCEPT ALL / INTERSECT ALL (these operations are not implemented yet in MariaDB). |