[SERVER-40810] Optimized $group/DISTINCT_SCAN does not respect hint Created: 24/Apr/19 Updated: 29/Oct/23 Resolved: 11/Jun/19 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | Querying |
| Affects Version/s: | 4.1.10 |
| Fix Version/s: | 4.2.0-rc3, 4.3.1 |
| Type: | Bug | Priority: | Major - P3 |
| Reporter: | Ian Boros | Assignee: | Mikhail Ivkov (Inactive) |
| 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 | ||||||||||||||||
| Backport Requested: |
v4.2
|
||||||||||||||||
| Sprint: | Query 2019-06-17 | ||||||||||||||||
| Participants: | |||||||||||||||||
| Description |
This is probably because of the special codepath here which doesn't consider the hint. |
| Comments |
| Comment by Githook User [ 01/Jul/19 ] |
|
Author: {'name': 'Misha Ivkov', 'email': 'misha.ivkov@10gen.com'}Message: (cherry picked from commit 95975c0e9c725ef86ef2fe6a8f5372e8a3f219d3) |
| Comment by Githook User [ 11/Jun/19 ] |
|
Author: {'name': 'Misha Ivkov', 'email': 'misha.ivkov@10gen.com'}Message: |
| Comment by Asya Kamsky [ 03/Jun/19 ] |
|
It ignores all hints, not just $natural, so hinting "_id" index also gets ignored. |