Kuzu version
v0.11.2
What operating system are you using?
Ubuntu 24.04
What happened?
With the following data:
CREATE NODE TABLE Person(name STRING PRIMARY KEY, occupation STRING);
CREATE REL TABLE LivesWith(FROM Person TO Person);
CREATE (p:Person {name: 'Alice'})-[:LivesWith]->(:Person {name: 'Bob'});
It is possible to extract a label from the path with:
MATCH p = (n)-[:LivesWith]->(m:Person {name: 'Bob'})
WITH nodes(p) AS ns
RETURN properties(ns, "_LABEL")[1];
But the following segfaults:
MATCH p = (n)-[:LivesWith]->(m:Person {name: 'Bob'})
WITH nodes(p) AS ns
RETURN label(ns[1]);