Skip to content

Buggy result #2858

@YuanchengJiang

Description

@YuanchengJiang

RedisGraph 2.4.14, 2.8.24, 2.10.7

To reproduce:

127.0.0.1:6379> GRAPH.QUERY g "CREATE (a:A), (b:B), (a)-[r1:R]->(b), (a)-[r2:R]->(b)"
1) 1) "Labels added: 2"
   2) "Nodes created: 2"
   3) "Relationships created: 2"
   4) "Cached execution: 0"
   5) "Query internal execution time: 0.223622 milliseconds"
127.0.0.1:6379> GRAPH.QUERY g "MATCH (c)--()--(c) return count(c)"
1) 1) "count(c)"
2) 1) 1) (integer) 2
3) 1) "Cached execution: 0"
   2) "Query internal execution time: 1.613708 milliseconds"
127.0.0.1:6379> GRAPH.QUERY g "MATCH p=(c)--()--(c) return count(c)"
1) 1) "count(c)"
2) 1) 1) (integer) 8
3) 1) "Cached execution: 0"
   2) "Query internal execution time: 1.474395 milliseconds"

I would expect the two results should be the same.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions