Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-101197

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

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

      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 Unassigned
            Reporter:
            andi.wang@mongodb.com Andi Wang
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: