QueryPlannerAnalysis::analyzeGeo() treats the presence of any 2dsphere v3 index as a guarantee that every stored value of the field was validated on insertion and sets canSkipValidation on the GeoMatchExpression, but a partial index only validates documents matching its partialFilterExpression. This lets a $geoWithin/$centerSphere collection scan parse an unvalidated geometry with validation disabled; the fix excludes partial indexes when collecting fields eligible for skip-validation.
Exclude partial indexes from 2dsphere geometry skip-validation
- Assignee:
-
Daniel Segel
- Reporter:
-
Daniel Segel
- Votes:
-
0 Vote for this issue - Watchers:
-
2 Start watching this issue
- Created:
- Updated: