Skip to content
This repository was archived by the owner on Apr 4, 2021. It is now read-only.

Commit 81d962e

Browse files
committed
Add test case for queries starting with 'WITH' #335
1 parent 8f32d62 commit 81d962e

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

compiler/src/test/scala/ingraph/sandbox/TckCompilerTest.scala

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
package ingraph.sandbox
22

3+
import ingraph.model.fplan.Selection
4+
35
class TckCompilerTest extends CompilerTest {
46

57
test("Hello World") {
@@ -131,6 +133,16 @@ class TckCompilerTest extends CompilerTest {
131133
assert(getLeafNodes(stages.fplan)(0).flatSchema.length == 1)
132134
}
133135

136+
ignore("Start with WITH") {
137+
val stages = compile(
138+
"""WITH 1 AS x
139+
|MATCH (some:Thing {prop: x})
140+
|RETURN some.prop
141+
""".stripMargin
142+
)
143+
findFirstByType(stages.fplan, classOf[Selection]).condition
144+
}
145+
134146
ignore("Placeholder for debugging plans") {
135147
val stages = compile(
136148
"""

0 commit comments

Comments
 (0)