Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-83545

When using COLLSCAN for distinct it should not add PROJECTION_SIMPLE

    • Type: Icon: Improvement Improvement
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 7.3.0-rc0
    • Affects Version/s: None
    • Component/s: None
    • None
    • Fully Compatible
    • QI 2023-11-27, QI 2023-12-11

      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.

            Assignee:
            irina.yatsenko@mongodb.com Irina Yatsenko (Inactive)
            Reporter:
            irina.yatsenko@mongodb.com Irina Yatsenko (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: