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

2dsphere index creation fails with null coordinates values

    • Type: Icon: Bug Bug
    • Resolution: Duplicate
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: 2.4.4
    • Component/s: Index Maintenance
    • Labels:
      None
    • ALL
    • 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.

      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"

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

              Created:
              Updated:
              Resolved: