执行以下两条语句
-
go from -6687639107950853490 over Relation where Relation.relation_name == "user_user" && Relation._dst == 253814685655007938 yield Relation._dst as id, Relation._src as src, $$.Contact.userid as userid | go from $-.id over Relation where Relation.relation_name == "user_user" yield Relation._dst as id, $-.src as src, $-.id as contact_id, $-.userid as userid | go from $-.id over Relation where Relation.relation_name == "user_company" && (Relation.userid == "" || Relation.userid== $-.userid) yield distinct Relation._dst, $-.contact_id as u_id | group by $-.u_id yield $-.u_id, count(*);
-
go from -6687639107950853490 over Relation where Relation.relation_name == "user_user" && (Relation._dst == 798233943211018399 || Relation._dst == 253814685655007938) yield Relation._dst as id, Relation._src as src, $$.Contact.userid as userid | go from $-.id over Relation where Relation.relation_name == "user_user" yield Relation._dst as id, $-.src as src, $-.id as contact_id, $-.userid as userid | go from $-.id over Relation where Relation.relation_name == "user_company" && (Relation.userid == "" || Relation.userid== $-.userid) yield distinct Relation._dst, $-.contact_id as u_id | group by $-.u_id yield $-.u_id, count(*);
第一条语句返回的结果为
第二条语句返回的结果为
两条语句中除了第一个go语句中的条件不一样,其余都一样。期望两条语句中id 为 253814685655007938 的count值一样,但是现在结果不同,有点奇怪?