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

Missing an error report on type conflicts of a redefined variable #5185

Closed
xtcyclist opened this issue Jan 3, 2023 · 1 comment · Fixed by #5446
Closed

Missing an error report on type conflicts of a redefined variable #5185

xtcyclist opened this issue Jan 3, 2023 · 1 comment · Fixed by #5446
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

@xtcyclist
Copy link
Contributor

(root@nebula) [test]> match p = (v:Label_5)-[e:Rel_0]-(v1:Label_1), p2 = (p)-[e2:Rel_2]-(v3:Label_3) where id(v) in [100] and id(v3) in [80] return count(p), count(p2)
+----------+-----------+
| count(p) | count(p2) |
+----------+-----------+
| 1        | 1         |
+----------+-----------+

This query shall not be executed successfully. It shall report Type mismatch: p defined with conflicting type Path for the use of (p) in p2.

@xtcyclist xtcyclist added the type/bug Type: something is unexpected label Jan 3, 2023
@github-actions github-actions bot added affects/none PR/issue: this bug affects none version. severity/none Severity of bug labels Jan 3, 2023
@xtcyclist xtcyclist self-assigned this Jan 3, 2023
@Sophie-Xie Sophie-Xie modified the milestones: v3.4.0, v3.5.0 Jan 3, 2023
@xtcyclist
Copy link
Contributor Author

The validator needs to check this.

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

Successfully merging a pull request may close this issue.

2 participants