Skip to content

Unexpected Error: UNION types agtype and bigint cannot be matched #885

@CelineWuest

Description

@CelineWuest

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions