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

修改点的标签 #236

Closed
wanghang-github opened this issue Jun 25, 2023 · 2 comments
Closed

修改点的标签 #236

wanghang-github opened this issue Jun 25, 2023 · 2 comments

Comments

@wanghang-github
Copy link

Describe the bug
我想修改指定节点的标签,但是出现了报错

To Reproduce
Steps to reproduce the behavior:

  1. 部署了Tugraph的单机社区版
  2. 导入了csv文件
  3. 运行代码match(n:instance) where n.value = 'MINE' remove n:instance set n:MINE;
  4. See error

error_message: "CypherException: Function not implemented yet: visitOC_RemoveItem at :417"

Expected behavior
期待节点的标签得到修改

Screenshots
image

Environment:

  • OS: [e.g. Ubuntu 18.04]
  • CPU: [e.g. Intel Xeon xxxx]
  • Compiler: [e.g. GCC 8.0]

Additional context
Add any other context about the problem here.

@spasserby
Copy link
Collaborator

目前来说Remove不支持删除一个点的标签/LABEL,同时因为strong-schema的原因,直接修改一个点的标签也不是很自然的事情。

不过从实现的角度,可以考虑“创建+删除”的方式来“修改”指定节点的标签,可以参考下面的例子:

MATCH (n: instance {name:'Liam Neeson'})
CREATE (m:MINE {id:a.id, name:a.name})
WITH n
DELETE n

@qishipengqsp
Copy link
Collaborator

The issue is closed due to inactivity. Please feel free to create a new one if you have more questions. And please star this repo if you find it useful! Thanks!

此issue由于长期不活跃被关闭。如有任何问题,可另开 issue 并提供更多信息。如果这个项目帮助到你,可以在仓库右上角 star 一下,感谢你的支持!

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

3 participants