Confusing error for 2d index creation by giving absurd min field

XMLWordPrintableJSON

    • Query Integration
    • None
    • 3
    • TBD
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      Currently the 2d index supports specifying min and max fields out of the [-180, 180] range of values.

      However, if specifying a min value of an absurdly large negative number like -6.362424895860688e+161 results in a confusing error that doesn't say what the actual issue is:

      MongoServerError[Location4799400]: Invalid GeoHashConverter parameters
      

      As values outside of the [-180, 180] range make no mathematical sense in a 2d plane we should consider limiting the range of values accepted in the command.

              Assignee:
              Unassigned
              Reporter:
              Jordi Olivares Provencio
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated: