When running the following query:
RETURN 0 AS x UNION RETURN COUNT(0) AS x
I encountered the following error:
pq: UNION types agtype and bigint cannot be matched
I believe the query mentioned above is semantically and syntactically correct and thus no error should be thrown here.
Additionally, the query runs successfully in neo4j.
I encountered this issue when testing queries against the apache/age:PG13_latest docker image.
Steps to reproduce
Run the following query and observe it throws an error:
RETURN 0 AS x UNION RETURN COUNT(0) AS x
Expected behavior
The query should run successfully
Actual behavior
The query fails with the error message UNION types agtype and bigint cannot be matched.