Copilot commented on code in PR #2360:
URL: https://github.com/apache/age/pull/2360#discussion_r3453807778


##########
src/backend/parser/cypher_gram.y:
##########
@@ -3585,6 +3622,30 @@ static Node 
*build_predicate_function_node(cypher_predicate_function_kind kind,
     }
 }
 
+/*
+ * Wrap a graph pattern in an EXISTS SubLink.  Used by both
+ * EXISTS(pattern) syntax and bare pattern expressions in WHERE.
+ */

Review Comment:
   The helper is used for both `EXISTS(pattern)` and *any* bare pattern 
expression in expression context (e.g., RETURN/SET/CASE), not just in WHERE. 
The doc comment is now misleading given `anonymous_path` was added to 
`expr_atom`.



-- 
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