Parsing invalid geo match predicate should not generate exception

XMLWordPrintableJSON

    • Fully Compatible
    • Query Optimization 2021-04-05
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      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 (Inactive)
            Reporter:
            J Rassi (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            7 Start watching this issue

              Created:
              Updated:
              Resolved: