You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Error: Runtime exception: Internal ID of relationship is not scanned. This should not happen.
(r, n | WHERE EXISTS { MATCH (n)-[:LivesIn]->(:City) }) is basically a placeholder for more complex filtering logic based on node and relation for current traversion step within a recursive MATCH pattern. It was used here as simple example and shouldn't change results, as every :User in the graph has a :City assigned. Without this clause, result is
Sorry took a while to get on this. Once #4052 is fixed, I suggest the following rewrite
MATCH (n)-[:LivesIn]->(:City)
WITH collect(n.name) AS names // collect names that satisfies the pattern
MATCH p = (u:User {name: "Adam"})-[e:Follows*]->(u2:User {name: "Noura"})
WITH properties(nodes(e),'name') AS pathNames, names, p AS path // find names without running predicate
WITH size(pathNames) AS originalSize, size(list_filter(pathNames, x->x IN names)) AS filteredSize, path
WHERE originalSize = filteredSize // make sure all elements in list satisfy lambda `x IN names`
RETURN properties(nodes(path),'name')
Kùzu version
nightly
What operating system are you using?
Fedora 39
What happened?
With demo dataset execute following query:
Error message:
(r, n | WHERE EXISTS { MATCH (n)-[:LivesIn]->(:City) })
is basically a placeholder for more complex filtering logic based on node and relation for current traversion step within a recursiveMATCH
pattern. It was used here as simple example and shouldn't change results, as every:User
in the graph has a:City
assigned. Without this clause, result is, which also would be expected for former query.
(after discussion with @andyfengHKU )
Are there known steps to reproduce?
No response
The text was updated successfully, but these errors were encountered: