After serialization with "LiteralSerializationPolicy::kToRepresentativeParseableValue", $elemMatch fails to re-parse with the error (with $gte or equivalent operators)
unknown top level operator: $gte
It seems like this may be the case because multiple $elemMatch predicates for one field are dispatched with the syntax
{ a : { $elemMatch :{$elemMatch:{ b: { $gte: 1, $lte: 1 } } } } }
but are serialized to
{ a: { $elemMatch: { $elemMatch: { $and: [ { $lt: 1 }, { $gt: 1 } ] } } } }
It seems the $and syntax may be causing re-parseability issues.
You can see the relevant failing tests in the query_stats_passthrough in BF-29272 and BF-29276
- is depended on by
-
SERVER-85070 PM-2885 Tracking: Known find correctness bugs
- Closed