[COMPASS-4216] Aggregation Queries give syntax error when escaping some regexes Created: 25/Mar/20  Updated: 29/Oct/23  Resolved: 08/Apr/20

Status: Closed
Project: Compass
Component/s: Aggregation pipeline
Affects Version/s: 1.20.5
Fix Version/s: 1.21.0

Type: Bug Priority: Major - P3
Reporter: Kirk Sefchik Assignee: Unassigned
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

Mac OS Catalina


Sprint: Iteration Blackberry

 Description   

Try using the following `$match` pipeline stage:

 ```

{   MetricName: /\|/ }

```

 

Gives the following error:

```

Expected "[" or AggregationStage but "{" found.

```

 

Expected behavior: Compass should allow me to escape my regexes in aggregation. This functionality works fine in basic query mode. I can't find any documentation to indicate that this is an invalid query or why this might be invalid if I have made a mistake.


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