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 for FETCH after PIPE #4191

Open
jamieliu1023 opened this issue Apr 20, 2022 Discussed in #4188 · 2 comments
Open

Support for FETCH after PIPE #4191

jamieliu1023 opened this issue Apr 20, 2022 Discussed in #4188 · 2 comments
Assignees
Labels
community Source: who proposed the issue type/feature req Type: feature request

Comments

@jamieliu1023
Copy link
Contributor

Discussed in #4188

Originally posted by chvr203 April 20, 2022
Discussion around the nebula forums on with @wey-gu : https://discuss.nebula-graph.io/t/retrieve-all-edges-with-all-ranks-using-fetch-query/1195/5
I’m using a composite query involving GO and FETCH.
Query:
GO FROM “v1_id” over edgeName1 yield $$.v2.id as alliasId | FETCH PROP ON edgeName2 $-.alliasId → “v3_vid” YIELD properties(edge);
Example at: https://docs.nebula-graph.io/2.0/3.ngql-guide/7.general-query-statements/4.fetch/#use_fetch_in_composite_queries

Required Traversal: v1 → v2 → v3

I need to traverse from a known v1_vid to a known v3_vid. The output of v2_vid should be used as an input to the FETCH query (as the number of edges of type edgeName2 is around 2 Billion and FETCH performs faster).
With the above query, I get a syntax error at `’ YIELD '. Looks like the problem is while providing the v3_vid in the query, which can’t be harcoded/provided. But since the v3_vid needs to be provided by us, this query is not working.

Is there a workaround to provide the v3_vid by the user? Or is it mandatory for v3_vid to be an output of the GO query.

Feature Required: Add support for FETCH query after PIPE ( | ) so that the destination vertex can be a user defined string/ harcoded value.

@jamieliu1023 jamieliu1023 added feature req community Source: who proposed the issue labels Apr 20, 2022
@wey-gu
Copy link
Contributor

wey-gu commented Apr 21, 2022

#3984

@wey-gu
Copy link
Contributor

wey-gu commented May 4, 2022

we only support either both or non peer of the fetch prop edge pattern to be variable, that is.
we only support:

fetch on serve "player133" -> "team202"
yield "foo" as a, "bar" as bar | fetch on serve $-.a -> $-.b
while not support :

yield "foo" as a, "bar" as bar | fetch on serve $-.a -> "bar"

@Sophie-Xie Sophie-Xie added type/feature req Type: feature request and removed feature req labels May 24, 2022
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 type/feature req Type: feature request
Projects
None yet
Development

No branches or pull requests

4 participants