[SERVER-69782] In CQF we erroneously match documents Created: 16/Sep/22  Updated: 05/Dec/22  Resolved: 21/Sep/22

Status: Closed
Project: Core Server
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Bug Priority: Major - P3
Reporter: Sam Mercier Assignee: Backlog - Query Optimization
Resolution: Duplicate Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
is depended on by SERVER-66606 Full statistics pipeline Closed
Duplicate
duplicates SERVER-67506 [CQF] Dotted path equality to null in... Open
Related
related to SERVER-67506 [CQF] Dotted path equality to null in... Open
Assigned Teams:
Query Optimization
Operating System: ALL
Participants:

 Description   

In classic, the document `

{a: [2]}

` only matches `{"a.a": {$ne: null}}`.

However with featureFlagCommonQueryFramework=true internalQueryFrameworkControl="tryBonsai",
we erroneously match both `{"a.a": {$eq: null}}` and `{"a.a": {$ne: null}}`. This doesn't match our semantics.

But moreover, it's a logical error as the not equals and equals sets should be distinct unless we're multi-key.


Generated at Thu Feb 08 06:14:23 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.