TuGraph-family / tugraph-db

TuGraph is a high performance graph database.
https://tugraph.org
Apache License 2.0
1.43k stars 191 forks source link

变长关系查询出错:CypherException: unhandled record entry type: VAR_LEN_RELP, header type: 34 #719

Open ZelinMa557 opened 3 weeks ago

ZelinMa557 commented 3 weeks ago

使用如下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]);
zhangwh807 commented 3 weeks ago

可以使用:MATCH p=(n:Entity {name:'test_entity_128'})-[r:Relation*1..3]-(m:Entity) RETURN p;

ZelinMa557 commented 3 weeks ago

可以使用:MATCH p=(n:Entity {name:'test_entity_128'})-[r:Relation*1..3]-(m:Entity) RETURN p;

谢谢您,这个cypher语句可以正确返回结果