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

2dsphere index creation fails with null coordinates values

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: Major - P3 Major - P3
    • None
    • 2.4.4
    • 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.

    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

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: