Implement EXISTS subquery for CASE by dehowef · Pull Request #1345 · apache/age
Modified logic of EXISTS to wrap itself in a agtype cast. This allows EXISTS to work with in CASE statements, among other implementations that may require an agtype.
Also renamed the wrapper function to be more generic to denote its usage in other implementations if need be.
Changed some variable names in regression tests for clarity.
Added regression tests for EXISTS.