[COMPASS-2887] Agg pipeline builder parser is not evaluating substring match properly Created: 27/May/18  Updated: 29/Oct/23  Resolved: 31/May/18

Status: Closed
Project: Compass
Component/s: Aggregation pipeline, Compass
Affects Version/s: 1.14.0-beta
Fix Version/s: None

Type: Bug Priority: Major - P3
Reporter: Grigori Melnik (Inactive) Assignee: Alena Khineika
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Attachments: PNG File MongoDB_Compass_Beta_bug_substring_in_match_in_agg_pipeline_builder.png     PNG File MongoDB_Compass_Beta_bug_substring_in_match_in_agg_pipeline_builder_works_in_shell.png    
Sprint: Sprint Vanilla Ice, Sprint Wyclef Jean

 Description   

This (see in Text as JIRA is trying to interpret multiple curly brackets as macros) should world (it works in the shell) but instead one gets a syntax error (see attached)

 

{$match:

Unknown macro: {atmosphericComposition}

} }

 

 



 Comments   
Comment by Durran Jordan [ 30/May/18 ]

Will need to alter the grammar in https://github.com/mongodb-js/stage-validator/blob/master/src/agg_pipeline.pegjs

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