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

support variable reference in fetch #2980

Open
wey-gu opened this issue Sep 30, 2021 · 1 comment
Open

support variable reference in fetch #2980

wey-gu opened this issue Sep 30, 2021 · 1 comment
Labels
community Source: who proposed the issue need to discuss Solution: issue or PR without a clear conclusion on whether to handle it type/feature req Type: feature request

Comments

@wey-gu
Copy link
Contributor

wey-gu commented Sep 30, 2021

Is your feature request related to a problem? Please describe.

When trying to fulfill the requirement of this (as match multi-pattern not yet supported), fetch based on ref-var not supported was hit.

Maybe it could be supported?

(root@nebula) [basketballplayer]> go from "player101" over follow2 yield follow._dst as dst| FETCH PROP ON follow "player101" -> $-.dst
[ERROR (-1004)]: SyntaxError: syntax error near `$-'

Wed, 29 Sep 2021 10:35:56 CST

Describe the solution you'd like
Support this syntax.

Describe alternatives you've considered
N/A
Additional context
N/A

@wey-gu wey-gu added type/feature req Type: feature request community Source: who proposed the issue need to discuss Solution: issue or PR without a clear conclusion on whether to handle it labels Sep 30, 2021
@Shylock-Hg
Copy link
Contributor

It's ok to implement. But a little strange.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
community Source: who proposed the issue need to discuss Solution: issue or PR without a clear conclusion on whether to handle it type/feature req Type: feature request
Projects
None yet
Development

No branches or pull requests

2 participants