Mayil-AI-Sandbox / kuzudb_jan15

MIT License
0 stars 0 forks source link

Better error message for query with two CREATE statements (hashtag2779) #30

Open vikramsubramanian opened 4 months ago

vikramsubramanian commented 4 months ago

I was trying the following on the RDFGraphs and wrote this query, but I can't understand the error message:

kuzu> WITH " as kz, " as rdf 
..> MATCH (s:UniKG_r {iri: kz+"Nour"})
..> CREATE (s)-[p:UniKG_rt {iri: rdf + "type"}]->(o:UniKG_r {iri: kz + "student"})
..> RETURN *;
Error: Cannot evaluate expression with type PROPERTY.

This is after I create an RDFGraph UniKG and insert the uni.ttl turtle file with the set of triples shown the example database in RDFGraphs documentation.

If I remove the RETURN statement things work.

)

mayil-ai[bot] commented 4 months ago

Summary: Error message is unclear when executing a query with two CREATE statements in RDFGraphs.

Possible Solution

Based on the provided information, the issue seems to be related to the string concatenation within the iri property in the Cypher-like query language used by Kùzu. The error message Error: Cannot evaluate expression with type PROPERTY. suggests that the concatenation operation is not being handled correctly, possibly due to a type mismatch or an incorrect evaluation context.

To resolve the issue:

Please note that the provided Java and C++ test code snippets and the ANTLR parser definitions do not seem to be directly relevant to the issue at hand, as they do not contain the logic for processing the specific query that is causing the error.

Code snippets to check