-
Type: Bug
-
Resolution: Unresolved
-
Priority: Major - P3
-
None
-
Affects Version/s: None
-
Component/s: None
-
Query Optimization
-
ALL
-
-
QO 2024-02-05
I ran into this while adding upsert support to the update fuzzer during skunkworks (TIG-4521). This appears to be caused by SERVER-81630 - I noticed different behavior after it than before it. Before the change, an upsert with a query like this:
{$nor: [{$or: [{x: 1}, {y: 2}]}, {x: {$ne: 3}}]}
would insert an empty document (that is, empty aside from _id). After the change, it inserts a document with _id and a field from the $nor predicate (x: 3). This predicate with a $ne and $or nested in a $nor was the simplest one I could find to trigger the differing behavior.
- is caused by
-
SERVER-81630 Enable Boolean expression simplifier
- Closed
- is related to
-
SERVER-91700 Boolean simplifier causes problems on upsert
- Closed