tugraph-db
tugraph-db copied to clipboard
变长关系查询出错:CypherException: unhandled record entry type: VAR_LEN_RELP, header type: 34
使用如下cypher语句查询时,tugraph报错:
MATCH (n:Entity {name:'test_entity_128'})-[r:Relation*1..3]-(m:Entity) RETURN r;
如果把return r
改成return m
,tugraph就不会报错。
是否有其他替代方案,可以简便的查询k跳以内的子图?
建表语句:
CALL db.createVertexLabel('Entity', 'name', 'name', 'string', false, 'type', 'string', false, 'description', 'string', false, 'chunk_id', 'int64', false);
CALL db.createLabel('edge', 'Relation', '[["Entity","Entity"]]', ['weight', 'int32', false], ['description', 'string', false], ['chunk_id', 'int64', false]);