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

Parsing invalid geo match predicate should not generate exception

    • Fully Compatible
    • Query Optimization 2021-04-05

      The return type of MatchExpressionParser::parse() is StatusWith<std::unique_ptr<MatchExpression>>, but a UserException is thrown from this method when given an invalid geo near predicate (see GeoNearExpression::parseLegacyQuery(), GeoNearExpression::parseNewQuery(), and GeoNearExpression::parseFrom()).

      Instead, an error Status should be returned.

            Assignee:
            joshua.lapacik@mongodb.com Joshua Lapacik (Inactive)
            Reporter:
            rassi J Rassi
            Votes:
            0 Vote for this issue
            Watchers:
            7 Start watching this issue

              Created:
              Updated:
              Resolved: