List中元素的类型转换

提问参考模版:

  • nebula 版本:2.0.0-RC1
  • 部署方式(分布式):

对List中的元素进行Int类型转换报错,查询语句和报错如下:

(root@nebula) [nba]> yield split('123,456,789', ',') as l| yield [e in $-.l | (int)(e)] as c;
[ERROR (-12)]: SemanticError: Can not convert 0x7f673446f000 's type : __EMPTY__ to INT

逻辑上说元素“e”应该是String类型的,为啥是__EMPTY__了?

@jievince

是个bug,会提pr解决,多谢

预计啥时可以修复呢?

已提PR,在验证 empty to INT OR FLOAT by nevermore3 · Pull Request #426 · vesoft-inc/nebula-common · GitHub

1 个赞