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

Closed
ZelinMa557 opened this issue Oct 28, 2024 · 4 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语句可以正确返回结果

Copy link

Hello @ZelinMa557. Please provide more info for debugging. Issues labeled by more info needed will be closed if no activities in 7 days.

你好 @ZelinMa557, 我们需要你提供更多信息以便于排查问题。7 天内未跟进此 issue 将会被自动关闭。

Copy link

github-actions bot commented Jan 2, 2025

Since this issue was labeled as "more info needed" but no response has been received for 15 days. Now the issue is closed. Please feel free to create a new one with more info if you have more questions.

由于该 issue 被标记为需要更多信息,却 15 天未收到回应。现关闭 issue,若有任何问题,可另开 issue 并提供更多信息。

@github-actions github-actions bot closed this as not planned Won't fix, can't repro, duplicate, stale Jan 2, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants