Skip to content

Cypher : Adding parentheses changes the result #3403

Description

@vitoprr

Hello,

cc @ExtReMLapin

At the office, we're running this query with Open Cypher (New Native Engine) :

MATCH (nodeDOc:DOCUMENT)<-[rel:in]-(chunk:CHUNK)
WHERE NOT (chunk:CHUNK)--(:IMAGE)
return nodeDOc, chunk

Returns 8 records

But running the same query but with parentheses :

MATCH (nodeDOc:DOCUMENT)<-[rel:in]-(chunk:CHUNK)
WHERE (NOT (chunk:CHUNK)--(:IMAGE))
return nodeDOc, chunk

Returns 25 records

To us, we expect the same number of records

Backup : TEST_REQUETE-backup-20260211-093354590.zip

Have a wonderful day ~~

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions