-
Type: Task
-
Resolution: Unresolved
-
Priority: Major - P3
-
None
-
Affects Version/s: None
-
Component/s: None
-
None
-
Query Execution
-
QE 2025-02-03, QE 2025-02-17
Bonsai ConstEval was removed in SERVER-95275, the functionality should be moved to SBE ExpressionConstEval. However, some of the folding optimization is missed and some unit tests can't pass.
- OR operator: lhs || true -> true, test case
- AND operator: lhs && false -> false, test case
- If-Nothing should be folded to Nothing, test case
- "if ( x ) then true else false" -> x, test case
- "if ( x ) then false else true" -> NOT x, test case
- "if (not ( x )) then y else z" -> "if ( x ) then z else y", test case
- isInList(const) folding, test case
In above list, I put the github link to the place where logic should be added if simple to add or the original ConstEval algorithm, as well as the corresponding test cases that are not passing.
- related to
-
SERVER-95275 Remove heuristic optimizer rewrites: (Bonsai) ConstEval, path rewrites, ProjNormalize
- Closed
-
SERVER-95539 Investigate Bonsai ConstEval tests that do not work with SBE's ExpressionConstEval
- Closed