We should modify QueryPlanner:: plan to try to convert eligible index scan plans to distinct scan plans when:
- the feature flag is enabled
- it encounters a CanonicalQuery with a distinct() property
Then add unit tests to verify that we generate appropriate plans.
- is depended on by
-
SERVER-92614 Support multiplanning DISTINCT_SCAN for distinct command
- Closed
-
SERVER-92615 Support multiplanning for DISTINCT_SCAN in aggregate command path
- Closed