The current implementation of the ShardFiltererImpl computes its own ShardKeyPattern. However, this is not needed anymore: we can obtain this object from the ScopedCollectionFilter itself (SERVER-62149).
The current implementation of the ShardFiltererImpl computes its own ShardKeyPattern. However, this is not needed anymore: we can obtain this object from the ScopedCollectionFilter itself (SERVER-62149).