Mayil-AI-Sandbox / kuzudb_jan15

MIT License
0 stars 0 forks source link

RuntimeError: _Map_base::at When execute MATCH clause with redundant node (hashtag2701) #52

Open vikramsubramanian opened 4 months ago

vikramsubramanian commented 4 months ago

Hi! The following query will cause a strange exception in Kuzu, i.e., RuntimeError: _Map_base::at

MATCH (n1), (n2)<-[]-(n2), (n1)<-[]-(n2) RETURN COUNT (*)

I also have further investigated the case. If I remove the redundant (n1) in the pattern, Kuzu will successfully return the result.

Your help in further confirming and investigating this bug will be highly appreciated.

The graph data for reproduction is as follows: [G.zip](

Best regards, Qiuyang

)

mayil-ai[bot] commented 4 months ago

We're not sure how to solve this one.

but here are some ideas that might help you get started -

Summary: RuntimeError occurs in Kuzu when executing a MATCH clause with a redundant node in the pattern.

Possible Solution

Based on the provided information and code snippets, the issue seems to be related to a Cypher query that is causing a RuntimeError: _Map_base::at exception. This error typically occurs when trying to access a key in a map that does not exist. The problematic query is:

MATCH (n1), (n2)<-[]-(n2), (n1)<-[]-(n2) RETURN COUNT (*)

This query contains a redundancy in the pattern description, which might be causing the error. To resolve the issue, consider the following steps:

The relevant code snippet that might be directly related to the issue is not provided, but the solution would involve modifying the query execution logic, which is likely part of the CypherQueryExecutor or a similar component in the Kùzu database system.

Code snippets to check