2dsphere index creation fails with null coordinates values

XMLWordPrintableJSON

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

      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
              Reporter:
              Adam Fields
              Votes:
              1 Vote for this issue
              Watchers:
              5 Start watching this issue

                Created:
                Updated:
                Resolved: