[COMPASS-6889] Confusing error in Aggregation pipeline Created: 31/May/23  Updated: 15/Nov/23

Status: Open
Project: Compass
Component/s: Aggregation pipeline
Affects Version/s: None
Fix Version/s: None

Type: Bug Priority: Minor - P4
Reporter: Ksenia Samokhvalova Assignee: Unassigned
Resolution: Unresolved Votes: 0
Labels: needs-prioritization
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

OS: Mac
node.js / npm versions:
Compass version: Version 1.37.0 (1.37.0)
Also Atlas Data Explorer


Attachments: PNG File Screenshot 2023-05-31 at 12.48.57 PM.png    
Story Points: 3

 Description   

Problem Statement/Rationale

When a placeholder code into aggregation pipeline is inserted as part of Atlas Search templates in Search Tester workflow , a confusing error is displayed: 

 

It's not clear what is experimental syntax that Compass/Atlas is complaining about 

Please be sure to attach relevant logs with any sensitive data redacted.
How to retrieve logs for: Compass; Shell

Steps to Reproduce

How could an engineer replicate the issue you’re reporting?

create default search index on a database, copy paste code in Aggregation pipeline: 

 

[
{
$searchMeta: {
index: "default",
facet: {
facets: {
facet_name: { type: "string", path: "<field-path>", numBuckets: <integer>, },
},
},
},
},
]

Expected Results

Expected error to tell me to enter an integer

Actual Results

What do you observe is happening?

Confusing error about experimental syntax

Additional Notes

Any additional information that may be useful to include.


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