[SERVER-83545] When using COLLSCAN for distinct it should not add PROJECTION_SIMPLE Created: 22/Nov/23  Updated: 07/Dec/23  Resolved: 07/Dec/23

Status: Closed
Project: Core Server
Component/s: None
Affects Version/s: None
Fix Version/s: 7.3.0-rc0

Type: Improvement Priority: Major - P3
Reporter: Irina Yatsenko (Inactive) Assignee: Irina Yatsenko (Inactive)
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Backwards Compatibility: Fully Compatible
Sprint: QI 2023-11-27, QI 2023-12-11
Participants:

 Description   

When there are no candidate indexes for distinct scan, getExecutorDistinct() removes the projection but if there is a candidate index (e.g.

{x: 1, a: 1}

for distinct("a")) the projection isn't stripped.



 Comments   
Comment by Githook User [ 07/Dec/23 ]

Author:

{'name': 'Irina Yatsenko', 'email': 'irina.yatsenko@mongodb.com', 'username': 'IrinaYatsenko'}

Message: SERVER-83545 Cleanup creating plan executor for the distinct command

GitOrigin-RevId: 8fb7ab2ea4edf2906ab1c7305793dd04978424da
Branch: master
https://github.com/mongodb/mongo/commit/c1883e3ef8db1d42fbcd0c3be45eec39aa81364c

Generated at Thu Feb 08 06:52:30 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.