Distinct and ClusterDistinct commands have some code repetition and complications in its handling in views, which will be refactored in this ticket.
Apart from that views_distinct.js test does not run in sharded collections passthrough, due to issues with explain assertion, which will be also fixed
- is related to
-
SERVER-78875 ParsedDistinct::asAggregationCommand() should return an AggregationRequest, not a BSONObj
- Open