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
randomJoe211
changed the title
LIMIT <list> in GO always return the same result and can be looped in
LIMIT <list> in GO always return the same result and can be stuck in loops
Oct 22, 2021
How does it be stuck? Can you explain it in detail?
@jievince Suppose we have 1->2->3->1, and run GO FROM "1" OVER * LIMIT [1,1,1], the result will always be 1 itself.
If we have 1->2 and 2->1, and 1-> a number of other vertices, the first 2 rows returned are always 1 and 2, no matter how we set the list. I just think this may not be what the users would want.
Nebula Graph version: 2021.10.18-nightly
I have 5 vertices: "1" to "5". The edges are as follows:
insert edge follow(degree) values "1"->"2":(95);
insert edge follow(degree) values "2"->"3":(95);
insert edge follow(degree) values "3"->"1":(95);
insert edge follow(degree) values "2"->"4":(95);
insert edge follow(degree) values "4"->"5":(90);
insert edge follow(degree) values "3"->"4":(90);
If I run
GO 3 STEPS FROM "1" OVER follow LIMIT [1,1,1]
, I always get the same result "1". This test showed that:GO... LIMIT <list>
always walks through the same path, probably depending on the dictionary order or the VIDs.Is it designed to be like this?
The test nGQL are as follows.
The text was updated successfully, but these errors were encountered: