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

Parsing invalid geo match predicate should not generate exception

    XMLWordPrintable

    Details

    • Backwards Compatibility:
      Fully Compatible
    • Sprint:
      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

          Issue Links

            Activity

              People

              Assignee:
              joshua.lapacik Joshua Lapacik
              Reporter:
              rassi J Rassi
              Participants:
              Votes:
              0 Vote for this issue
              Watchers:
              7 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: