You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
TRAVERSE outE("knows") FROM ( SELECT *, $depth as some_depth FROM ( TRAVERSE out("knows") FROM ( SELECT * FROM my_class where name = "Alice" ) WHILE $depth <= 2 ) SKIP 0 LIMIT 3 )
If you run the same query without selecting the $depth, it will work :
TRAVERSE outE("knows") FROM ( SELECT * FROM ( TRAVERSE out("knows") FROM ( SELECT * FROM my_class where name = "Alice" ) WHILE $depth <= 2 ) SKIP 0 LIMIT 3 )
About the general idea behind this, i'm interested in the $depth of the first traverse because this is about a constructed query where a client declared how much depth level he allows to traverse the data and once the query is over, our system will always retrieve the outgoing edges of the processed set of vertices.
I guess i could make it work by storing the intermediate set into memory and then doing a second step (request) to retrieve the outgoing edges but this is exactly what i want to avoid, i should not have to store the intermediate set in order to retrieve what i want.
I tried to tweak the query by using a batch script like so :
LET $a = (
SELECT *, $depth as d FROM (
TRAVERSE out("knows") FROM ( SELECT * FROM my_class where name = "Alice" ) WHILE $depth <= 2
) SKIP 0 LIMIT 3 ) ;
SELECT *, $depth from ( TRAVERSE outE("knows") FROM (select expand($a)));
But it didn't worked either, any ideas ?
Best Regards,
Cyprien.
The text was updated successfully, but these errors were encountered:
OrientDB Version: v3.0.3
Java Version: 1.8.0_161
OS: Ubuntu 16.04
Hi OrientDB Team,
Expected behavior
Possibility to "reset" $depth constraint by changing its name with a projection
Actual behavior
Requests returns no result.
Steps to reproduce
Import minimalist database :
delete_from_match.gz
Run following query :
TRAVERSE outE("knows") FROM ( SELECT *, $depth as some_depth FROM ( TRAVERSE out("knows") FROM ( SELECT * FROM my_class where name = "Alice" ) WHILE $depth <= 2 ) SKIP 0 LIMIT 3 )
If you run the same query without selecting the $depth, it will work :
TRAVERSE outE("knows") FROM ( SELECT * FROM ( TRAVERSE out("knows") FROM ( SELECT * FROM my_class where name = "Alice" ) WHILE $depth <= 2 ) SKIP 0 LIMIT 3 )
About the general idea behind this, i'm interested in the $depth of the first traverse because this is about a constructed query where a client declared how much depth level he allows to traverse the data and once the query is over, our system will always retrieve the outgoing edges of the processed set of vertices.
I guess i could make it work by storing the intermediate set into memory and then doing a second step (request) to retrieve the outgoing edges but this is exactly what i want to avoid, i should not have to store the intermediate set in order to retrieve what i want.
I tried to tweak the query by using a batch script like so :
But it didn't worked either, any ideas ?
Best Regards,
Cyprien.
The text was updated successfully, but these errors were encountered: