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

2dsphere index creation fails with null coordinates values

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Duplicate
    • Affects Version/s: 2.4.4
    • Fix Version/s: None
    • Component/s: Index Maintenance
    • Labels:
      None
    • Operating System:
      ALL
    • Steps To Reproduce:
      Hide

      Try to build a 2dsphere index on a collection where some documents have a null value for the coordinates field.

      Show
      Try to build a 2dsphere index on a collection where some documents have a null value for the coordinates field.

      Description

      When trying to index a collection with a 2dsphere index, even with the sparse option in the nightly build (7/3), the index creation throws an error if some documents have a null value for the coordinates field (not a missing key).

      Specifically, this is a collection of tweets directly from the twitter API - the "coordinates" field has a geojson structure if there is geocoding data, but if there is none, the "coordinates" field still exists and has a null value.

      The error is:

      "Can't parse geometry from element: coordinates: null"

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              Unassigned Unassigned
              Reporter:
              fields Adam Fields
              Participants:
              Votes:
              1 Vote for this issue
              Watchers:
              5 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: