kuzu icon indicating copy to clipboard operation
kuzu copied to clipboard

Bug: Suspicious results for MATCH query when replacing one (n1) to (n2)

Open joyemang33 opened this issue 8 months ago • 5 comments

Kùzu version

v0.4.3.23

What happened?

First, I execute the following Cypher query on my graph:

MATCH (n1)-[]->(n1)-[]->(n1)-[]->(n1) RETURN COUNT (*)
=> 216

Then, I execute the second query in the same graph:

MATCH (n1)-[]->(n1)-[]->(n2)-[]->(n1) RETURN COUNT (*)
=> 72

I am not sure whether the first result greater than the second one is expected in Kuzu, because the second query can strictly match more patterns.

It would be highly appreciated if you could tell me if I misunderstood this case or if it was caused by a potential bug in Kuzu.

Best regards, Qiuyang

Are there known steps to reproduce?

The graph data can be imported by the statements in the attached JSON file G2_48.json

joyemang33 avatar Jun 08 '24 14:06 joyemang33