Details
-
Bug
-
Resolution: Fixed
-
Major - P3
-
None
-
None
-
None
-
Fully Compatible
-
ALL
-
-
QE 2021-12-13
-
45
Description
The issue here is related to subplanning for $or condition of $match stage. The $and in the repro has only one $or element and I expect that $and would be optimized away and $or would be the top expression but the following code can not detect that.
https://github.com/mongodb/mongo/blob/master/src/mongo/db/pipeline/pipeline_d.cpp#L121-L125
Attachments
Issue Links
- is related to
-
SERVER-60191 A $match and $group pipeline fails when $match has a $or expression
-
- Closed
-