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

Bug on remove vertex #1750

Closed
lvca opened this issue Oct 18, 2013 · 0 comments
Closed

Bug on remove vertex #1750

lvca opened this issue Oct 18, 2013 · 0 comments
Assignees
Milestone

Comments

@lvca
Copy link
Member

lvca commented Oct 18, 2013

I have 3 vertices N1, P1, N2:

  • N1 is connected with P1 with two edges.
  • P1 is connected with N2 with two edges.

N1 ----> P1 ----> N2
+--------^

create vertex V set name = 'N1'                           
create vertex V set name = 'P1'
create vertex V set name = 'N2'
select from V where name in ['N1', 'N2', 'P1'];

----+----+----
0   |#9:0|N1  
1   |#9:1|P1  
2   |#9:2|N2  
----+----+----

create edge E from #9:0 to #9:1 set name = 'e1';          
create edge E from #9:0 to #9:1 set name = 'e2';
create edge E from #9:1 to #9:2 set name = 'e3';

select from V where name in ['N1', 'N2', 'P1']; 

----+----+----+-----+-----
0   |#9:0|N1  |[2]  |null 
1   |#9:1|P1  |#10:2|[2]  
2   |#9:2|N2  |null |#10:2
----+----+----+-----+-----

Well now I remove the vertex P1.

delete vertex #9:1
select from V where name in ['N1', 'N2', 'P1'];

----+----+----+----
0   |#9:0|N1  |[2] 
1   |#9:2|N2  |null
----+----+----+----

References in N2 have been removed (value = null) but for N1 I still have two references if the result of the previous select is valid. I expected a null value also but the result is [2]. But when I do the following select the result is empty.

select expand(out_) from V where name in ['N1', 'N2', 'P1'];

So that sounds like a bug.

@ghost ghost assigned lvca Oct 18, 2013
lvca added a commit that referenced this issue Oct 18, 2013
@lvca lvca closed this as completed Oct 18, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant