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
three questions in nebula 1.0
case 1
create tag t1 (a int , b int default 1);
upsert vertex 5 set t1.a = 1, t1.b = $^.t1.a + 1;
The upsert statement should be executed successfully, but currently it has failed
The reason is that` b = $^.t1.a + 1 `requires `a` to have a default value, which is wrong
case 2
create edge e1 (c int , d int default 1);
upsert edge 111 -> 222@0 of e1 set c= 3, d = e1.c+ 10;
The upsert statement should be executed successfully, but currently it has failed
The reason is that` d = e1.c+ 10 ` requires` c` to have a default value, which is wrong
case 3
update/upsert edge 111->333 @0 of e1 set c = 1, d = $^.t1.a;
$^ is different in the forward edge and the reverse edge
$^ in the positive edge is 5
$^ in the reverse edge is 10002
Cause the properties of the forward and reverse edges to be inconsistent.
Therefore, tag properties are not allowed in the` set clause` and `when clause` in update edge
case 1 and case 2 case 3 are ok in 2.0
The text was updated successfully, but these errors were encountered:
We had improve the update/upsert logic in version 2.0. This issue remains no longer. And i'll close the related pr since it would not be fixed in version 1.0.
The text was updated successfully, but these errors were encountered: