Skip to content

r IN relationships(path) fails with unknown type of agtype container 1610612736 #2542

Description

@YGY-001

Environment

Apache AGE 1.8.0
PostgreSQL 18.6
Docker image: apache/age:release_PG18_1.8.0

Reproduction

LOAD 'age';
SET search_path = ag_catalog, public;

SELECT ag_catalog.create_graph('age_issue_case15');

SELECT *
FROM ag_catalog.cypher('age_issue_case15', $$
CREATE (a:L)-[:R]->(b)
$$) AS (v agtype);

SELECT *
FROM ag_catalog.cypher('age_issue_case15', $$
MATCH ()-[r0]->()
MATCH p0 = (:L)-[:R]->()
RETURN r0 IN relationships(p0) AS member
$$) AS (member agtype);

Expected

The query returns:
member

true

Actual

ERROR: unknown type of agtype container 1610612736
The following controls succeed:
MATCH p0 = (:L)-[:R]->()
RETURN relationships(p0)
MATCH ()-[r0]->()
RETURN r0 IN [r0] AS member

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