opencypher / openCypher

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

Chaining of non arithmetic operators #542

Closed hvub closed 1 year ago

hvub commented 1 year ago

This PR is based on #541.

This PR proposes changes to the openCypher grammar for allowing chaining of non-arithmetic operators as a reaction to issue #539. With the PR, the grammar allows for instance

RETURN foo()[1]:F, foo().x.y[1][4].name:F

as valid syntax, which was not the case before.

The PR also adjusts CIP2021-08-10 Operator precedence (rendered view) to the changed grammar.

jonaskello commented 1 year ago

Just ran into the issue that list[0].myprop will not parse properly, but (list[0]).myprop works. From what I understand this PR will fix that. Is there a timeline for when it will be merged/released?