[COMPASS-3485] $expr query is not valid Created: 06/Mar/19  Updated: 29/Oct/23  Resolved: 26/Apr/19

Status: Closed
Project: Compass
Component/s: Compass, Query
Affects Version/s: 1.17.0
Fix Version/s: None

Type: Bug Priority: Major - P3
Reporter: Pierre Bazoge Assignee: Alena Khineika
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

MacOS Mojave


Attachments: PNG File expr-validator.png    
Issue Links:
Related
related to COMPASS-3552 Compass Aggregation Builder gives "n.... Closed
Documentation Changes: Not Needed
Sprint: Iteration Antelope, Iteration Bison, Iteration Cat

 Description   

The filter expression is not valid when using $expr to query documents.

Example: {$expr: {$gt: [15,10]}}

 

I use Compass to test complex queries before implementing them, but the validator is not working well, and it's not the first time... maybe we could get rid of the validator in a future release?

A DB error is better than a broken validator...



 Comments   
Comment by Githook User [ 29/Apr/19 ]

Author:

{'email': 'alenakhineika@users.noreply.github.com', 'name': 'Alena Khineika', 'username': 'alenakhineika'}

Message: COMPASS-3485 valid expr keyword in query (#1691)

  • Resolving merge conflicts
Comment by Githook User [ 26/Apr/19 ]

Author:

{'name': 'Alena Khineika', 'username': 'alenakhineika', 'email': 'alenakhineika@users.noreply.github.com'}

Message: COMPASS-3485 valid expr keyword in query (#1691)

  • Resolving merge conflicts
Comment by Githook User [ 26/Apr/19 ]

Author:

{'name': 'Alena Khineika', 'username': 'alenakhineika', 'email': 'alenakhineika@users.noreply.github.com'}

Message: COMPASS-3485 valid expr keyword in query (#1691)

  • Resolving merge conflicts
Comment by Githook User [ 26/Apr/19 ]

Author:

{'email': 'alenakhineika@users.noreply.github.com', 'name': 'Alena Khineika', 'username': 'alenakhineika'}

Message: COMPASS-3485 valid expr keyword in query (#1691)

  • Resolving merge conflicts
Comment by Githook User [ 26/Apr/19 ]

Author:

{'email': 'alenakhineika@users.noreply.github.com', 'name': 'Alena Khineika', 'username': 'alenakhineika'}

Message: COMPASS-3485 valid expr keyword in query (#1691)

  • Resolving merge conflicts
Comment by Githook User [ 15/Apr/19 ]

Author:

{'name': 'Alena Khineika', 'username': 'alenakhineika', 'email': 'alena.khineika@gmail.com'}

Message: COMPASS-3485 valid expr keyword in query
Branch: COMPASS-3485-valid-expr-in-query
https://github.com/10gen/compass/commit/dc36ac6fa76c971f796eeb2e9cc8e7ed70927049

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