Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Compute detailed relationship type from WHERE clause #162

Open
pstutz opened this issue Oct 31, 2017 · 2 comments
Open

Compute detailed relationship type from WHERE clause #162

pstutz opened this issue Oct 31, 2017 · 2 comments

Comments

@boggle
Copy link
Contributor

boggle commented Nov 1, 2017

Move to trello

@Mats-SX
Copy link
Member

Mats-SX commented Oct 18, 2018

These should be able to have the same plan:

it("should plan efficiently") {
  val given = initGraph("CREATE ()-[:FOO]->()-[:BAR]->()")

  PrintRelationalPlan.set()

  given.cypher(
    """
      |MATCH ()-[r]->()
      |WHERE type(r) = 'FOO'
      |RETURN r
    """.stripMargin).show
  
  given.cypher(
    """
      |MATCH ()-[r:FOO]->()
      |RETURN r
    """.stripMargin).show
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants