Skip to content

[CYPHER] Quantified path pattern ->+ only matches 1 relationship instead of 1+ #3924

@ExtReMLapin

Description

@ExtReMLapin

Test: quantifiedPathPatternWithPlus (line 234)

Setup (create test data):

CREATE (a:QuantPathTest {name: 'A'})-[:NEXT]->(b:QuantPathTest {name: 'B'})-[:NEXT]->(c:QuantPathTest {name: 'C'})

Cypher query to execute:

MATCH (start:QuantPathTest {name: 'A'})-[:NEXT]->+(end:QuantPathTest) RETURN end.name AS result ORDER BY result

Expected behavior:

-[:NEXT]->+ should match 1 or more relationships

ArcadeDB result:

{"result": ["B"]}

Neo4j result:

{"result": ["B", "C"]}

The ->+ quantifier should match one or more relationships, but it only matches exactly one relationship.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions