[SERVER-80772] Stage builders generate invalid plan for simple project after sort query Created: 05/Sep/23 Updated: 29/Oct/23 Resolved: 15/Sep/23 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | None |
| Affects Version/s: | 7.0.0 |
| Fix Version/s: | 7.2.0-rc0, 7.0.2, 7.1.0-rc3 |
| Type: | Bug | Priority: | Critical - P2 |
| Reporter: | Ian Boros | Assignee: | Ian Boros |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Issue Links: |
|
||||||||||||
| Assigned Teams: |
Query Execution
|
||||||||||||
| Backwards Compatibility: | Fully Compatible | ||||||||||||
| Operating System: | ALL | ||||||||||||
| Backport Requested: |
v7.1, v7.0
|
||||||||||||
| Sprint: | QE 2023-09-18 | ||||||||||||
| Participants: | |||||||||||||
| Linked BF Score: | 160 | ||||||||||||
| Description |
|
The stage builders generate a plan that assumes a "root" document is available when it is not. E.g.
This assumes s4 is available after the sort when in fact, only the _id value was carried through the sort. The result is that the query fails due to a tassert. |
| Comments |
| Comment by Githook User [ 15/Sep/23 ] |
|
Author: {'name': 'Ian Boros', 'email': 'ian.boros@mongodb.com', 'username': 'borosaurus'}Message: |
| Comment by Githook User [ 15/Sep/23 ] |
|
Author: {'name': 'Ian Boros', 'email': 'ian.boros@mongodb.com', 'username': 'borosaurus'}Message: (cherry picked from commit d4c429c6228f1809d7825564fc1ae6f2a82fcf15) |
| Comment by Githook User [ 14/Sep/23 ] |
|
Author: {'name': 'Ian Boros', 'email': 'ian.boros@mongodb.com', 'username': 'borosaurus'}Message: |