Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Boolean operators work without space after a string #162

Closed
CAQ opened this issue Feb 2, 2023 · 2 comments
Closed

Boolean operators work without space after a string #162

CAQ opened this issue Feb 2, 2023 · 2 comments
Assignees

Comments

@CAQ
Copy link
Contributor

CAQ commented Feb 2, 2023

Is your feature request related to a problem? Please describe.
MATCH p=(m)-[]->(n:genre) WHERE n.name='Action' AND m.duration>160 RETURN p works, but
MATCH p=(m)-[]->(n:genre) WHERE n.name='Action'AND m.duration>160 RETURN p not (ParserException).

Describe the solution you'd like
I'd suggest both of them work.

Describe alternatives you've considered
N/A

Additional context
N/A

@spasserby
Copy link
Collaborator

Currently, spaces are required around the "AND".
You can try modifying the "oC_AndExpression" in Lcypher.g4.
oC_AndExpression : oC_NotExpression ( (SP)* AND (SP)* oC_NotExpression )* ;

@qishipengqsp
Copy link
Collaborator

The issue is closed due to inactivity. Please feel free to create a new one if you have more questions. And please star this repo if you find it useful! Thanks!

此issue由于长期不活跃被关闭。如有任何问题,可另开 issue 并提供更多信息。如果这个项目帮助到你,可以在仓库右上角 star 一下,感谢你的支持!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants