From 81d962e9101da9bb453ab4e44d9ac5816d51945c Mon Sep 17 00:00:00 2001 From: Gabor Szarnyas Date: Mon, 5 Mar 2018 22:31:01 +0100 Subject: [PATCH] Add test case for queries starting with 'WITH' #335 --- .../test/scala/ingraph/sandbox/TckCompilerTest.scala | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/compiler/src/test/scala/ingraph/sandbox/TckCompilerTest.scala b/compiler/src/test/scala/ingraph/sandbox/TckCompilerTest.scala index 241acc8a4..38401d385 100644 --- a/compiler/src/test/scala/ingraph/sandbox/TckCompilerTest.scala +++ b/compiler/src/test/scala/ingraph/sandbox/TckCompilerTest.scala @@ -1,5 +1,7 @@ package ingraph.sandbox +import ingraph.model.fplan.Selection + class TckCompilerTest extends CompilerTest { test("Hello World") { @@ -131,6 +133,16 @@ class TckCompilerTest extends CompilerTest { assert(getLeafNodes(stages.fplan)(0).flatSchema.length == 1) } + ignore("Start with WITH") { + val stages = compile( + """WITH 1 AS x + |MATCH (some:Thing {prop: x}) + |RETURN some.prop + """.stripMargin + ) + findFirstByType(stages.fplan, classOf[Selection]).condition + } + ignore("Placeholder for debugging plans") { val stages = compile( """