Mayil-AI-Sandbox / kuzudb_jan15

MIT License
0 stars 0 forks source link

Multilabel relationship pattern not working when a db has more than 1 RDFGraph (hashtag2769) #34

Open vikramsubramanian opened 4 months ago

vikramsubramanian commented 4 months ago

I have 2 RDFGraphs in my database: TurtleEx and UniKG. The following gives a binder error:

kuzu> MATCH (a:UniKG_r {iri: " RETURN *;
Error: Binder exception: Relationship pattern p with multiple rdf table labels is not supported.

If I drop TurtleEx, then the query works as expected. I don't think there is a good reason the above query is not supported. )

mayil-ai[bot] commented 4 months ago

Summary: Relationship pattern with multiple RDFGraph labels is not supported in the database, causing a binder error.

Possible Solution

Based on the provided information, the issue seems to be related to a query that attempts to match a relationship pattern with multiple RDF table labels, which is not supported by the system. The relevant code snippet that throws the exception is found in src/binder/bind/bind_graph_pattern.cpp.

To resolve the issue, you should:

If the former is the case and the query needs to be modified, here's what you should do:

If the latter is the case and the system needs to support multiple RDF table labels in a single relationship pattern, here's a high-level approach:

Code snippets to check