PragyanD commented on issue #339:
URL: https://github.com/apache/age/issues/339#issuecomment-1295112119

   > Update regarding the location of the error: The issue may be in the 
`cypher_gram.y` file where the `EXISTS` function is defined.
   > 
   > This query works:
   > 
   > ```sql
   > SELECT * FROM cypher('test', $$ OPTIONAL MATCH (a)-[:incs]->(c) WHERE 
EXISTS((c)<-[:incs]-(a)) RETURN a,c $$) AS (a agtype, c agtype);
   > ```
   > 
   > However when `MATCH (a:A) WITH a` is added before the cypher query and `a` 
is referenced in the parameter of `EXISTS` function, the query fails. The 
grammar is probably not defined accurately for this specific pattern.
   > 
   > Anyone who is also working on this issue is welcome to make a comment on 
this.
   
   Nice catch Rafsun! I'll investigate this interaction further. 


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to