-
Type:
Bug
-
Resolution: Duplicate
-
Priority:
Minor - P4
-
None
-
Affects Version/s: 8.3.0, 9.0.0
-
Component/s: None
-
None
-
Query Execution
-
ALL
-
-
None
-
None
-
None
-
None
-
None
-
None
-
None
If you have a query of the form '{_id: {a: 0, $eq: 2}}', isSimpleIdQuery in query_utils.cpp will return true and it will get sent to the express executor path where
getQueryFilterMaybeUnwrapEq will unwrap it to '{_id: 2}' and ignore the 'a: 0' entirely. It should never get sent to the express path in the first place because isSimpleIdQuery should return false when there are multiple fields in the object.