[SERVER-67427] [CQF] Conjunction with predicates over the same field does not match documents where the field is an array Created: 21/Jun/22 Updated: 27/Jul/22 Resolved: 27/Jul/22 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | None |
| Affects Version/s: | None |
| Fix Version/s: | None |
| Type: | Bug | Priority: | Major - P3 |
| Reporter: | Nicholas Zolnierz | Assignee: | Svilen Mihaylov (Inactive) |
| Resolution: | Duplicate | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Issue Links: |
|
||||||||||||||||
| Sprint: | QE 2022-07-11 | ||||||||||||||||
| Participants: | |||||||||||||||||
| Description |
|
Although it looks like a contradiction at a glance, the query
Matches the document {a: [1, 2]}as each predicate is applied after implicitly traversing the leaf array. This query works on classic but does not return the matching document with Bonsai enabled. The relevant test is here ($all is sugar for $and). |