[COMPASS-3974] Compass aggregation incorrectly pre-parses a pipeline and reports an error when there isn't one Created: 22/Nov/19  Updated: 29/Oct/23  Resolved: 19/Oct/20

Status: Closed
Project: Compass
Component/s: Aggregation pipeline, Tech debt
Affects Version/s: 1.19.12
Fix Version/s: No version

Type: Bug Priority: Minor - P4
Reporter: Andre M Assignee: Unassigned
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

Windows 10, 64-bit, MongoDB Compass Community


Attachments: PNG File compass-aggregate-parse-pipeline-bug.png    
Documentation Changes: Not Needed

 Description   

On the Aggregations tab when this pipeline is used:

, an error Expected "[" or AggregationStage but "{" found. is reported. When the pipeline is executed in Mongo Shell, there's no error:

> db.col.aggregate([{
...   $match: {
...     $expr: {
...       $eq: [
...         "$_id", ObjectId("5d768411c6575d0078903a38")
...       ]
...     }
...   }
... }])
{ "_id" : ObjectId("5d768411c6575d0078903a38"), ... rest of results ...}

 



 Comments   
Comment by Rhys Howell [ 19/Oct/20 ]

Pre-parser was removed. Now errors are straight from the driver.

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