-
Type: Bug
-
Resolution: Duplicate
-
Priority: Major - P3
-
None
-
Affects Version/s: None
-
Component/s: Query Execution
-
None
-
Query Execution
-
ALL
-
-
20
The following two equivalent queries produce a different result, and different plans. The aggregation query constant-folds the expression, and chooses an SBE plan, while the find query doesn't constant-fold, and produces a different result.
The different results have been found by the fuzzer test from BF-23998.
The problem seems to be at few levels:
- Constant folding should have worked in both cases in the same way, but it didn't kick in for the find query.
- Constant folding should produce the same value as direct execution - otherwise it is incorrect to constant fold an expression.
- duplicates
-
SERVER-62485 Match the SBE $add behavior to the classic engine's or the other way around
- Closed