Skip to content

Issues with multiple or in the edge label filter #1612

Description

@eruffaldi

With 3 or conditions in an edge label the outcome is not correct and depends on the order:

a-[:X|:Y|:Z]-b differs from a-[:Z|:Y|:X]-b

While UNION a-[:X|:Y]-b and a-[:Z]-b provides the correct answer.

Activity

  1. jeffreylovitz commented on Mar 5, 2021

    @jeffreylovitz
    Contributor

    Thanks for the report, @eruffaldi.

    Can you provide some sample queries to reproduce this problem?

  2. eruffaldi commented on Mar 5, 2021

    @eruffaldi
    Author

    MATCH (a) DELETE (a)
    CREATE(a:A {name:"a"})
    CREATE(b:B {name:"b"})
    CREATE(c:C {name:"c"})
    CREATE(c:D {name:"d"})
    MATCH (a:A), (b:B) CREATE (a)-[:X]->(b) RETURN a
    MATCH (a:A), (b:C) CREATE (a)-[:Y]->(b) RETURN a
    MATCH (a:A), (b:D) CREATE (a)-[:Z]->(b) RETURN a
    MATCH (a)-[:X|:Y|:Z]->(b) RETURN a,b
    MATCH (a)-[:Y|:Z|:X]->(b) RETURN a,b

  3. swilly22 commented on Mar 8, 2021

    @swilly22
    Contributor

    Fixed #1618

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

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions