Verify filters in a GeoNear2D(Sphere) stage in QueryPlanner unit tests

XMLWordPrintableJSON

    • Type: Task
    • Resolution: Unresolved
    • Priority: Major - P3
    • None
    • Affects Version/s: 8.0.0
    • Component/s: None
    • Query Integration
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      Query Planner unit tests do not verify anything about a GeoNear2D stage other than the key pattern. Further information here: https://github.com/10gen/mongo/pull/31342#discussion_r1954635178

      Query Planner unit tests also do not verify any filter that a GeoNear2DSphere stage has. Relevant code starts here: https://github.com/10gen/mongo/blob/ecdd2528565c99f093c60db0f7376135e11d422c/src/mongo/db/query/query_planner_test_lib.cpp#L672

      The consequence of this is that if a filter gets pushed into a GeoNear2D(Sphere) stage, the filter seems to vanish from the expected test result.

      The engineer who will add filter verificatio should figure out what other aspects of GeoNear2D(Sphere) stages should be verified while they're at it.

              Assignee:
              Unassigned
              Reporter:
              Andi Wang
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated: