dehowef opened a new issue, #1341: URL: https://github.com/apache/age/issues/1341
**Describe the bug** CASE statement throws an error on a case that should be valid. i.e the parser tries to cast the CASE clause (the variable (n) in this case) into a boolean but the parser disallows this cast. **How are you accessing AGE (Command line, driver, etc.)?** - PG 15 commandline **What data setup do we need to do?** None really besides have AGE Extension built and a graph ready to query **What is the command that caused the error?** ```pgsql postgres=# SELECT * FROM cypher('test', $$ MATCH (n) RETURN CASE n WHEN n.j = 1 THEN 1 ELSE 'n.j is not 1' END $$ ) AS ( case_statement agtype); ``` ``` ERROR: cannot cast agtype vertex to type boolean ``` **Expected behavior** The vertex should be accepted as a valid part of the CASE statement **Environment (please complete the following information):** - PG 15 Version 1.4.0 -- 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: dev-unsubscr...@age.apache.org.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org