Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
ZelinMa557 opened this issue Oct 28, 2024 · 2 comments

Comments

@ZelinMa557
Copy link

使用如下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
Copy link
Collaborator

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

@ZelinMa557
Copy link
Author

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

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants