You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The query suggests that "some" productions the actor has acted in should be both a Seriesand a Movie. This is not the case for this actor so it should not have been returned.
The following cypher is generated for this query:
MATCH (this:Actor)
WHERE (EXISTS {
MATCH (this)-[:ACTED_IN]->(this0:Movie)
WHERE this0.title CONTAINS $param0
} AND EXISTS {
MATCH (this)-[:ACTED_IN]->(this1:Series)
WHERE this1.title ENDS WITH $param1
})
RETURN this { .name } AS this
As you can see, the AND is applied outside the EXISTS.
However, I would have expected cypher along these lines (note this is sudo code - I think the labels syntax is probably wrong):
MATCH (this:Actor)
WHERE (EXISTS {
MATCH (this)-[:ACTED_IN]->(this0:Movie|Series)
WHERE (this0.title CONTAINS $param0 AND label(this0) = "Movie") AND (this0.title ENDS WITH $param1 AND label(this0) = "Series")
}
RETURN this { .name } AS this
Version
4.4.5
Database version
5.13
Relevant log output
No response
The text was updated successfully, but these errors were encountered:
We've been able to confirm this bug using the steps to reproduce that you provided - many thanks @Liam-Doodson! 🙏 We will now prioritise the bug and address it appropriately.
Type definitions
Test data
Steps to reproduce
Run this query:
What happened
The actor with
name="Some Name"
is returned.Expected behaviour
The query suggests that "some" productions the actor has acted in should be both a
Series
and aMovie
. This is not the case for this actor so it should not have been returned.The following cypher is generated for this query:
As you can see, the
AND
is applied outside theEXISTS
.However, I would have expected cypher along these lines (note this is sudo code - I think the
labels
syntax is probably wrong):Version
4.4.5
Database version
5.13
Relevant log output
No response
The text was updated successfully, but these errors were encountered: