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

ngql Variable undefined behaviors in yield clause #3211

Closed
czpmango opened this issue Oct 26, 2021 · 4 comments · Fixed by #3271
Closed

ngql Variable undefined behaviors in yield clause #3211

czpmango opened this issue Oct 26, 2021 · 4 comments · Fixed by #3271
Assignees
Labels
type/bug Type: something is unexpected
Milestone

Comments

@czpmango
Copy link
Contributor

(czp@nebula) [nba]> $var=go from "Tim Duncan" over * yield like._dst as dst;yield $var
+------+
| $var |
+------+
|      |
+------+
Got 1 rows (time spent 6724/7816 us)

(czp@nebula) [nba]> $var=go from "Tim Duncan" over * yield like._dst as dst;yield $var[0][1]
+--------------+
| $var[0][1]   |
+--------------+
| OUT_OF_RANGE |
+--------------+
Got 1 rows (time spent 5579/6662 us)

Whether to disable variable in yield clause?

@czpmango czpmango added the type/bug Type: something is unexpected label Oct 26, 2021
@Sophie-Xie Sophie-Xie added this to the v3.0.0 milestone Oct 26, 2021
@Shylock-Hg
Copy link
Contributor

Better don't allow user to write variable expression.

@czpmango
Copy link
Contributor Author

czpmango commented Nov 4, 2021

Better don't allow user to write variable expression.

ACK.

@CPWstatic CPWstatic assigned czpmango and unassigned CPWstatic Nov 9, 2021
@CPWstatic
Copy link
Contributor

These statements are illegal as we discussed offline.

@czpmango
Copy link
Contributor Author

czpmango commented Nov 9, 2021

These statements are illegal as we discussed offline.

Fixed in #3271

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type/bug Type: something is unexpected
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants