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

Handling ambiguities in the bison glr parser #5235

Closed
czpmango opened this issue Jan 11, 2023 · 1 comment
Closed

Handling ambiguities in the bison glr parser #5235

czpmango opened this issue Jan 11, 2023 · 1 comment
Assignees
Labels
affects/none PR/issue: this bug affects none version. process/fixed Process of bug severity/none Severity of bug type/bug Type: something is unexpected
Milestone

Comments

@czpmango
Copy link
Contributor

czpmango commented Jan 11, 2023

Describe the bug
An ambiguity from bison glr parser occurred when parsing some statements.

Your Environment
nebula 3.3.0

How To Reproduce

(root@nebula) [nba]> MATCH (v:player{name: 'Tim Duncan'})-[e:like*0..2]-(v2) WHERE size([ii in e WHERE (v)-[ii]-(v2) | ii])>1  RETURN count(*) AS cnt 
[ERROR (-1004)]: SyntaxError: syntax is ambiguous near `(v)-[ii]-(v2)'

Expected behavior
Parse out the correct AST.

@czpmango czpmango added the type/bug Type: something is unexpected label Jan 11, 2023
@github-actions github-actions bot added affects/none PR/issue: this bug affects none version. severity/none Severity of bug labels Jan 11, 2023
@xtcyclist xtcyclist added this to the v3.5.0 milestone Jan 11, 2023
@czpmango czpmango mentioned this issue Jan 31, 2023
11 tasks
@czpmango
Copy link
Contributor Author

Already fixed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
affects/none PR/issue: this bug affects none version. process/fixed Process of bug severity/none Severity of bug type/bug Type: something is unexpected
Projects
None yet
Development

No branches or pull requests

2 participants