vesoft-inc/nebula

DML(update) after pipeline

开放

#2,938 创建于 2021年9月27日

 (10 条评论) (0 个反应) (0 位负责人)C++ (1,144 个派生)batch import
communityhacktoberfesttype/feature req

仓库指标

星标
 (9,828 个星标)
PR 合并指标
 (30 天内没有已合并 PR)

描述

Is your feature request related to a problem? Please describe.

  • To batch update tag after certain index scan.
  • To support update conditionally

Describe the solution you'd like Support this:

(root@nebula) [basketballplayer]> LOOKUP ON player | UPDATE VERTEX ON player $-.VertexID SET age = age + 0
[ERROR (-1004)]: SyntaxError: syntax error near `UPDATE'

Mon, 27 Sep 2021 10:23:58 CST
(root@nebula) [basketballplayer]> LOOKUP ON player WHERE player.name == "Tim Duncan" YIELD id(vertex) AS id | UPDATE VERTEX ON player $-.id SET age=1 YIELD age
[ERROR (-1004)]: SyntaxError: syntax error near `UPDATE'

Tue, 23 May 2023 14:03:33 CST

(root@nebula) [basketballplayer]> $var = YIELD "player999" AS vid;UPDATE VERTEX ON player $var.id SET age=1 YIELD age
[ERROR (-1004)]: SyntaxError: Variable is not supported in vid near `$var'

Describe alternatives you've considered Or so other expressions which make more sense than I wasn't aware of?

Additional context

https://discuss.nebula-graph.com.cn/t/topic/5911

贡献者指南