Star

2.0语法的2个问题

对照着 https://docs.nebula-graph.com.cn/manual-CN/1.overview/2.quick-start/1.get-started/ 执行了一遍发现有2个地方运行错误

// 2.0下执行报错
UPSERT VERTEX "111" SET player.name = "Dwight Howard", player.age = $^.player.age + 11 WHEN $^.player.name == "Ben Simmons" && $^.player.age > 20 YIELD $^.player.name AS Name, $^.player.age AS Age; -- 对该点进行 UPSERT 操作。
// 2.0下执行正确
UPSERT VERTEX "111" SET player.name = "Dwight Howard", player.age = $^.player.age + 11 WHEN $^.player.name == "Ben Simmons" and $^.player.age > 20 YIELD $^.player.name AS Name, $^.player.age AS Age;
// 2.0下执行报错
REBUILD TAG INDEX player_index_0 OFFLINE;
// 2.0下执行正确
REBUILD TAG INDEX player_index_0;

有文档吗?我想搞明白为什么是这样 谢谢

  1. 2.0去除了&&运算符
  2. 2.0去除了OFFLINE

浙ICP备20010487号