opencypher / openCypher

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

Invalid syntax #539

Open howard-gleason opened 2 years ago

howard-gleason commented 2 years ago

Thanks for the recent grammar updates that have fixed other syntax errors. The following Cypher query is valid, however, openCypher throws a parse error

MATCH path=()-[]->()
RETURN relationships(path)[0].name

In order to get openCypher to parse it, parentheses have to be added:

MATCH path=()-[]->()
RETURN (relationships(path)[0]).name

Can or will this syntax be accepted into openCypher?

jacobfriedman commented 2 years ago

On this note, would it be possible to include the generated .EBNF syntax in this repo as well?

howard-gleason commented 2 years ago

@jacobfriedman

On this note, would it be possible to include the generated .EBNF syntax in this repo as well?

Milestone artifacts are posted here: https://opencypher.org/resources/

Generate your own by following: https://github.com/opencypher/openCypher/tree/master/grammar

jacobfriedman commented 2 years ago

edit: Will turn this into an issue/request.