gaeduf commented on issue #1997: URL: https://github.com/apache/incubator-hugegraph/issues/1997#issuecomment-1312966500
> > @javeme 已经找到原因了,因为在边文件中,同一条边数据导入了三次,但是边名称不一样 这会导致上述那个问题。 另外: 我想问下,目前我们在定义边的时候 会指定 是A指向B 还是B指向A,在实践中,我发现 当边的struct.json文件 中 source 字段值填 taget的id值,target的字段 匹配的是source的id 时候,仍然可以正常连接(在useCustomizeStringId的时候),但是查询出来会出现 属性获取不到的情况。 为什么没有做校验呢? > > 没太明白“边名称不一样”的含义,能否给出具体示例schema与gremlin语句? 我描述的就是这种情况:  上图每两个顶点之间的关系都是三条边,其实只有一条边关系是正确的,之所以显示这种情况,是因为 这三条边关系都存放在一个文件里面去了,导致我们误认为 前面既然约束了 边的 起止顶点类型,不会出现这种 张冠李戴的情况,因而导入了三遍数据。但是事实上,边的起止顶点类型的定义没有任何约束作用(至少在使用自定义字段作为主键的情况下是这样的)。 -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
