SERVER-138098ClosedFixed

Exclude sparse indexes from collection-wide path arrayness inference

{{PathArrayness::isIndexEligibleToAddToPathArrayness}} [excludes partial indexes|https://github.com/mongodb/mongo/blob/72268c5a2750ff1f005e27f51775ec90b994337a/src/mongo/db/query/compiler/metadata/path_arrayness.cpp#L30-L32] because it only indexes a subset of documents in the collection and therefore does not profile a full view of arrayness. Currently sparse indexes are _not_ excluded because a document contributes to multikeyness in a sparse index even if it does not contribute any keys to th

Affected Versions
Versions known to exhibit this issue

No affected versions recorded.

Fixed Versions
Versions that include the fix
9.1.0-rc09.1.0-rc1025
Components
Server components related to this issue

No components specified.

Labels
Tags and classification
auto-reverted