Test: variableLengthPatternComprehensionTwoLength (line 400)
Setup (create test data):
CREATE (alice:VarLengthTest3 {name:'Alice'}),
(bob:VarLengthTest3 {name:'Bob'}),
(charlie:VarLengthTest3 {name:'Charlie'}),
(alice)-[:KNOWS]->(bob),
(bob)-[:KNOWS]->(charlie),
(alice)-[:KNOWS]->(charlie)
Cypher query to execute:
MATCH (a:VarLengthTest3 {name:'Alice'}) RETURN [(a)-[:KNOWS*2..2]->(f:VarLengthTest3) | f.name] AS result
Expected behavior:
[(a)-[:KNOWS*2..2]->(f) | f.name] should return ['Charlie']
ArcadeDB result:
{"result": ["Charlie", "Bob"]}
Neo4j result:
The variable-length pattern *2..2 should only return nodes at exactly distance 2, but it includes nodes at distance 1.
Test:
variableLengthPatternComprehensionTwoLength(line 400)Setup (create test data):
Cypher query to execute:
Expected behavior:
ArcadeDB result:
{"result": ["Charlie", "Bob"]}Neo4j result:
{"result": ["Charlie"]}The variable-length pattern
*2..2should only return nodes at exactly distance 2, but it includes nodes at distance 1.