Exclude partial indexes from 2dsphere geometry skip-validation

XMLWordPrintableJSON

    • Type: Task
    • Resolution: Unresolved
    • Priority: Major - P3
    • 8.2.13, 8.0.29, 7.0.40, 8.3.8, 9.0.0-rc2
    • Affects Version/s: None
    • Component/s: None
    • None
    • Query Integration
    • v9.0, v8.3, v8.2, v8.0, v7.0
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      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.

            Assignee:
            Daniel Segel
            Reporter:
            Daniel Segel
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: