[SERVER-49022] Implement validation error generation for comparison query operators Created: 22/Jun/20  Updated: 29/Oct/23  Resolved: 15/Jul/20

Status: Closed
Project: Core Server
Component/s: None
Affects Version/s: None
Fix Version/s: 4.7.0

Type: Task Priority: Major - P3
Reporter: Mihai Andrei Assignee: Mihai Andrei
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Backwards Compatibility: Fully Compatible
Sprint: Query 2020-07-13, Query 2020-07-27
Participants:

 Description   

Implement validation error generation for $eq, $lt, $lte, $gt, $gte, $ne, $in, and $nin along with unit tests verifying that generated errors conform to the expected format. Since this is the first ticket which tracks work for generating errors, the following will also be implemented under this ticket:

  • Introduce an 'ErrorAnnotation' type for MatchExpressions
  • General support for generating errors for path accepting expressions. This includes:
    • Generating errors for operators which expect a path but the path doesn't exist.
    • Appending 'consideredValues' when the operator makes use of implicit array traversal and appending 'consideredValue' when dealing with a single value.


 Comments   
Comment by Githook User [ 15/Jul/20 ]

Author:

{'name': 'Mihai Andrei', 'email': 'mihai.andrei@10gen.com', 'username': 'mtandrei'}

Message: SERVER-49022 Implement validation error generation for comparison query operators
Branch: master
https://github.com/mongodb/mongo/commit/eaaee39e2c4eaf9938c5a75bce30648435ae10cc

Generated at Thu Feb 08 05:18:44 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.