tugraph-db icon indicating copy to clipboard operation
tugraph-db copied to clipboard

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

Open ZelinMa557 opened this issue 3 months ago • 2 comments

使用如下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]);

ZelinMa557 avatar Oct 28 '24 09:10 ZelinMa557