Skip to content

Array functions not recognizing VPC #1044

Closed

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.

Activity

  1. added
    bug
    on Jul 17, 2023
  2. titoausten commented on Jul 17, 2023

    @titoausten

    The condition beside the WHERE clause is > 1, this will return an error as the size is not greater than 1.

    size(v) = 1
    1 > 1 is FALSE.

  3. changed the title [-]size() unsupported argument[/-] [+]Array functions not recognizing VPC[/+] on Jul 20, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions