-
Type: Improvement
-
Resolution: Done
-
Priority: Major - P3
-
Affects Version/s: None
-
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.
- causes
-
SERVER-56928 Fix bug with findOne() query that uses $near operator
- Closed