opencypher / openCypher

Specification of the Cypher property graph query language
http://www.opencypher.org
Apache License 2.0
841 stars 149 forks source link

Update scenario to avoid illegally introducing variable in pattern predicate #537

Closed hedengran closed 2 years ago

hedengran commented 2 years ago

Feature "List6 - List size", scenario "Fail for size() on pattern predicates"

Examples 1 to 7 use pattern predicates that introduce variables, which is forbidden (see below). https://github.com/opencypher/openCypher/blob/b0ea6c0de107cf0a9ff27d395adcb07d0baf492a/tck/features/expressions/pattern/Pattern1.feature#L197-L221

To avoid returning a UndefinedVariable (in adhearance with above scenario), I suggest we simply avoid introducing new variables in this scenario.