Open vikramsubramanian opened 4 months ago
Summary: Relationship pattern with multiple RDFGraph labels is not supported in the database, causing a binder error.
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:
MATCH
clause) with multiple RDF table labels. This could mean modifying the query to only match patterns with a single RDF table label.If the former is the case and the query needs to be modified, here's what you should do:
MATCH
clause that includes a relationship pattern with a node labeled UniKG_r
and a property iri
.BinderException
.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:
bindGraphPattern
and related functions in src/binder/bind/bind_graph_pattern.cpp
to handle multiple RDF table labels.resourceTableIDs.size()
and throws the BinderException
.src/binder/bind/bind_graph_pattern.cpp
This snippet contains the logic that throws the 'BinderException' when a relationship pattern with multiple RDF table labels is encountered, which is directly related to the issue described.
I have 2 RDFGraphs in my database: TurtleEx and UniKG. The following gives a binder error:
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. )