更新完后台版本lookup报错

下面语句更新版本前还好用,更新完不好用了
lookup on command where command.cmd_level == “middle” or command.cmd_level == “high” or command.cmd_level == “low” yield command.cmd_id as cmd_id, command.chinese_desc as chinese_desc, command.cmd_regex as cmd_regex

更新完版本报错:
SyntaxError: OR and XOR are not supported in lookup where clause :(((command.cmd_level==middle)||(command.cmd_level==high))||(command.cmd_level==low))

mark

index在or/xor在1.1.0被禁用了,因为目前的design如果使用or/xor会有性能问题,试试lookup a union lookup b这样的语法?

@jude-zhu, 有空看看release note是不是漏了

1 个赞

union好用。文档上还没更新,还是老的文档

好的,多谢反馈,文档这两天会更新。

1 个赞

@Amber 改下文档

changelog 里面倒是写了。
Forbid OR and XOR conditions in LOOKUP ON statement. #2283

这里我改过,只支持AND,不支持or

注意: 在使用 LOOKUP 语句之前,请确保已创建索引。查看索引文档了解有关索引的更多信息。

LOOKUP ON {<vertex_tag> | <edge_type>} WHERE [ AND | OR expression …]) ] [YIELD <return_list>]

<return_list>
<col_name> [AS <col_alias>] [, <col_name> [AS <col_alias>] …]

这个里面还有OR

3 个赞