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

Variable not referred in from clause #3210

Closed
czpmango opened this issue Oct 26, 2021 · 0 comments · Fixed by #3430
Closed

Variable not referred in from clause #3210

czpmango opened this issue Oct 26, 2021 · 0 comments · Fixed by #3430
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;go from "Tim Duncan" over like yield $var.dst

[ERROR (-1009)]: SemanticError: A variable must be referred in FROM before used in WHERE or YIELD

(czp@nebula) [nba]> $var=go from "Tim Duncan" over * yield like._dst as dst;$var1=go from $var.dst over like yield like._dst as dst1;go from $var1.dst1 over like yield $var.dst
+----------+
| $var.dst |
+----------+
| __NULL__ |
+----------+
| __NULL__ |
+----------+
| __NULL__ |
+----------+
| __NULL__ |
+----------+
| __NULL__ |
+----------+
| __NULL__ |
+----------+
| __NULL__ |
+----------+
Got 7 rows (time spent 23942/25187 us)

$var.dst never be referred in from clause of the third sequential sentence but used in yield clause.

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