kuzu icon indicating copy to clipboard operation
kuzu copied to clipboard

WITH WHERE scoping rules

Open mxwli opened this issue 1 year ago • 3 comments

In Cypher, it seems that WITH <...> WHERE <...> share the same scope. For example,

MATCH (p:Person)
WITH p.name AS pname
WHERE p.age > 30
RETURN pname

is a valid query because p is in the scope of WHERE. Kuzu currently doesn't identify this:

image

mxwli avatar Jan 19 '24 17:01 mxwli