[MCOL-5119] Constant folding in WHERE/HAVING expressions Created: 2022-06-05 Updated: 2023-12-15 |
|
| Status: | Open |
| Project: | MariaDB ColumnStore |
| Component/s: | None |
| Affects Version/s: | None |
| Fix Version/s: | Icebox |
| Type: | New Feature | Priority: | Major |
| Reporter: | Roman | Assignee: | Max Mether |
| Resolution: | Unresolved | Votes: | 0 |
| Labels: | None | ||
| Epic Link: | Columnstore - Technical debts in Optimizer / Rewriter |
| Description |
|
There are certain expressions in WHERE/HAVING that can be calculated right away, e.g. c1 > (5 + 3) can be replaced with c1 > 8 saving some CPU not running addition in a query pipeline. |