[SERVER-68596] [CQF] A SargableNode should be generated for an $elemMatch on a complex path Created: 05/Aug/22 Updated: 29/Oct/23 Resolved: 27/Oct/22 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | None |
| Affects Version/s: | None |
| Fix Version/s: | 6.2.0-rc0 |
| Type: | Bug | Priority: | Major - P3 |
| Reporter: | Alya Berciu | Assignee: | David Percy |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Issue Links: |
|
||||||||||||||||||||
| Backwards Compatibility: | Fully Compatible | ||||||||||||||||||||
| Operating System: | ALL | ||||||||||||||||||||
| Sprint: | QO 2022-10-03, QO 2022-10-17, QO 2022-10-31 | ||||||||||||||||||||
| Participants: | |||||||||||||||||||||
| Description |
|
The following predicate should generate a Sargable node after optimization:
However, this is the generated ABT:
|
| Comments |
| Comment by Githook User [ 26/Oct/22 ] |
|
Author: {'name': 'David Percy', 'email': 'david.percy@mongodb.com', 'username': 'dpercy'}Message: The main change is to allow paths like Traverse (ComposeM ...) to A separate but related improvement: we now make use of more precise may have metadata telling us that 'b' is never Also, slightly improve lowerPartialSchemaRequirement's ability to |