-
Type: Bug
-
Resolution: Fixed
-
Priority: Major - P3
-
Affects Version/s: None
-
Component/s: Aggregation Framework
-
Fully Compatible
-
ALL
-
v4.2
-
-
Query 2019-07-15, Query 2019-07-29
-
0
When $setIntersection is evaluated, if a nullish expression is encountered first then null is returned. If instead the intersection becomes empty, then an empty array is returned. This means that changing the order of the operands changes the result, invalidating commutativity.
[js_test:repro] 2019-06-27T17:23:27.757-0400 2019-06-27T17:23:27.755-0400 E QUERY [js] uncaught exception: Error: [[ \{ "a" : [ ] } ]] != [[ \{ "a" : null } ]] are not equal : [js_test:repro] 2019-06-27T17:23:27.757-0400 doassert@src/mongo/shell/assert.js:20:14 [js_test:repro] 2019-06-27T17:23:27.757-0400 assert.eq@src/mongo/shell/assert.js:180:9 [js_test:repro] 2019-06-27T17:23:27.757-0400 @repro.js:30:1 [js_test:repro] 2019-06-27T17:23:27.757-0400 2019-06-27T17:23:27.755-0400 F - [main] failed to load: repro.js [js_test:repro] 2019-06-27T17:23:27.757-0400 2019-06-27T17:23:27.755-0400 E - [main] exiting with code -3
- is related to
-
SERVER-36698 Add suite for agg expr fuzzer optimized vs unoptimized
- Closed