Skip to content

Array functions not recognizing VPC #1044

@MuhammadTahaNaveed

Description

@MuhammadTahaNaveed

Describe the bug
I encountered an error when trying to get size of vle edge array in where clause which should have executed without error.

How are you accessing AGE (Command line, driver, etc.)?

  • terminal

What data setup do we need to do?

SELECT * FROM cypher('graph',$$
    CREATE (n)-[:KNOWS {n:'hello'}]->({n:'hello'})
$$) as (a agtype);

What is the command that caused the error?

SELECT * FROM cypher('graph', $$
    MATCH (m)-[v *]->(b) 
    WHERE size(v) >1
    RETURN b
$$) AS (a agtype);
ERROR:  size() unsupported argument

Expected behavior
Should have returned

 {"id": 281474976710658, "label": "", "properties": {"n": "hello"}}::vertex

Environment (please complete the following information):

  • latest (PG13 master)

Additional context
same error exists in all array functions i.e. they dont recognize VPC.

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