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

Report errors on where clauses in optional match queries #5272

Closed
nebula-bots opened this issue Jan 17, 2023 · 0 comments · Fixed by #5273
Closed

Report errors on where clauses in optional match queries #5272

nebula-bots opened this issue Jan 17, 2023 · 0 comments · Fixed by #5273
Assignees
Labels
affects/master PR/issue: this bug affects master version. auto-sync cherry-pick-v3.4 process/done Process of bug severity/minor Severity of bug type/bug Type: something is unexpected
Milestone

Comments

@nebula-bots
Copy link
Contributor

Optional match does not support where clauses for the time being. Queries like ... optional match (v) where v.player.age == 1000 ... may very likely return wrong results. Thus, we need to ban it and report errors.

It is ok to use a singular optional match without where clauses, like ... optional match (v:player) match ....

@nebula-bots nebula-bots added affects/none PR/issue: this bug affects none version. auto-sync severity/none Severity of bug type/bug Type: something is unexpected labels Jan 17, 2023
@xtcyclist xtcyclist self-assigned this Jan 17, 2023
@Sophie-Xie Sophie-Xie added this to the v3.4.0 milestone Jan 18, 2023
@nebula-bots nebula-bots added affects/master PR/issue: this bug affects master version. severity/minor Severity of bug and removed severity/none Severity of bug affects/none PR/issue: this bug affects none version. labels Jan 18, 2023
@github-actions github-actions bot added the process/fixed Process of bug label Jan 18, 2023
@nebula-bots nebula-bots added process/done Process of bug and removed process/fixed Process of bug labels Jan 20, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
affects/master PR/issue: this bug affects master version. auto-sync cherry-pick-v3.4 process/done Process of bug severity/minor Severity of bug type/bug Type: something is unexpected
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants