Test: labelExpressionPredicateWithNullNode (line 1062)
Setup (create test data):
CREATE (n1:IsLabeledTest {name: 'test1'}),
(n2:IsLabeledTest {name: 'test2'}),
(n3:IsLabeledTest {name: 'test3'}),
(n4:IsLabeledTest {name: 'test4'})
Cypher query to execute:
MATCH (n:IsLabeledTest) OPTIONAL MATCH (m:IsLabeledTest) WHERE m IS NULL RETURN n.name AS name, m:IsLabeledTest AS isLabeled
Expected behavior:
When m is null, m:LabelName should return null
ArcadeDB result:
Returns false (test expects true that result is null)
Neo4j result:
When applying a label expression predicate to a null node, it should return null, not false.
Test:
labelExpressionPredicateWithNullNode(line 1062)Setup (create test data):
Cypher query to execute:
Expected behavior:
ArcadeDB result:
Neo4j result:
When applying a label expression predicate to a null node, it should return null, not false.