Exclude partial indexes from 2dsphere geometry skip-validation

XMLWordPrintableJSON

    • Query Integration
    • Fully Compatible
    • 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:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: