Open vikramsubramanian opened 7 months ago
Summary: Error occurs when running a basic query with RDFGraph in the database.
Based on the provided information, the issue seems to be related to the handling of relationship patterns with multiple RDF table labels in the query engine. The error message indicates that the system does not support such patterns. To resolve the issue, follow these steps:
src/binder/bind/bind_graph_pattern.cpp
file.bind_graph_pattern.cpp
to allow handling of relationship patterns with multiple RDF table labels. This could involve updating the logic that throws the BinderException
when resourceTableIDs.size() > 1
.Here is a potential code change in src/binder/bind/bind_graph_pattern.cpp
:
if (!resourceTableIDs.empty()) {
// Allow handling of multiple RDF table labels by implementing the required logic
// For example, create a join operation across the multiple RDF tables
// The following is a placeholder for the actual implementation
auto joinOperation = createJoinOperationAcrossMultipleTables(resourceTableIDs);
queryRel->setJoinOperation(std::move(joinOperation));
// Rest of the code remains unchanged
}
return queryRel;
Please note that the above code snippet is a high-level example and does not contain the actual implementation details. The actual implementation would depend on the specific requirements and architecture of the Kùzu graph database.
src/binder/bind/bind_graph_pattern.cpp
The error message in the issue matches the one thrown in this snippet, indicating that the issue is likely related to the handling of relationship patterns with multiple RDF table labels.
We should be able to handle this.
)