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

Parsing invalid geo match predicate should not generate exception

    XMLWordPrintableJSON

Details

    • Fully Compatible
    • Query Optimization 2021-04-05

    Description

      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.

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: