[COMPASS-7296] Investigate changes in SERVER-49387: Poorly worded parsing error messages for match expressions Created: 04/Oct/23  Updated: 06/Oct/23  Resolved: 06/Oct/23

Status: Closed
Project: Compass
Component/s: None
Affects Version/s: None
Fix Version/s: No version

Type: Investigation Priority: Minor - P4
Reporter: Backlog - Core Eng Program Management Team Assignee: Unassigned
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
depends on SERVER-49387 Poorly worded parsing error messages ... Closed
Documentation Changes: Not Needed

 Description   
Original Downstream Change Summary

This change modifies error messages when incorrectly using `$and`, `$or`, `$not` and `$nor` operators in `$match` expressions.

Description of Linked Ticket

$and with argument that is not an array:

       $and must be an array (2) 

Suggest "$and argument must be an array" instead.

$not with an empty hash argument:

       $not cannot be empty (2)

Suggest "$not argument cannot be an empty document" instead.



 Comments   
Comment by Anna Henningsen [ 06/Oct/23 ]

No impact.

Comment by PM Bot [ 04/Oct/23 ]

Fix Version updated for upstream SERVER-49387:
7.2.0-rc0

Generated at Wed Feb 07 22:46:05 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.