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

Incorrect wrapping of spherical query near the poles on 2d index

    XMLWordPrintable

Details

    • Bug
    • Status: Backlog
    • Major - P3
    • Resolution: Unresolved
    • None
    • None
    • Geo
    • Fully Compatible
    • ALL
    • 0

    Description

      In this build failure, the S2 cap near the pole gives a bound covering it, but 2d index interprets it literally to the following box, whose longitudes should be (179.005 -->> -110.896) instead, on the other side of the earth.

      bounds: (-110.896,-89.776) -->> (179.005,-89.1716)
      

      The other failure of nearSphere seems the same problem as it is also very close to the pole. For nearSphere we expands the search area though. We should deprecate the support of spherical queries on 2d index and prohibit them in the future.

      As a workaround, spherical queries using 2dsphere index work as expected.

      Attachments

        Issue Links

          Activity

            People

              backlog-query-execution Backlog - Query Execution
              siyuan.zhou@mongodb.com Siyuan Zhou
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated: