2.0版本查询数据为空报BAD_TYPE错误有办法避免吗?

  • nebula 版本:2.0

2.0版本查询数据为空报BAD_TYPE错误有办法避免吗?
语句大体如下:

 go 0 to 10 steps from 33271944 over parent where $$.knowledgePoint.stage == 245555925719450368 and  \
  $$.knowledgePoint.subject == 'math' and $$.knowledgePoint.listingStatus >= 0 \ 
  YIELD $$.knowledgePoint.vertexType, $$.knowledgePoint.listingStatus, $$.knowledgePoint.id, \ 
 $$.knowledgePoint.listedVersion, $$.knowledgePoint.reviewVersion, $$.knowledgePoint.reviewStatus, \
  $$.knowledgePoint.remark, $$.knowledgePoint.currentReason, $$.knowledgePoint.lastUpdateTime, \
  $$.knowledgePoint.level, $$.knowledgePoint.kpOrderValue, $$.knowledgePoint.localizedInfo, \ 
  $^.knowledgePoint.id as parent;

当knowledgePoint.id为空时报报BAD_TYPE错误


但是1.X不会报错,直接返回空

你的 vid 用的是 string 吗?是的话把

这个加上个引号试试

不是string的,是INT64,前面的几个结果正常显示,就最后一个属性结果应该是空的,但直接BAD_TYPE了

是的,这是个bug,应该显示 也就是对应的类型是 empty 的。 我们尽快修复。感谢你的反馈。

修复 pr Fix the go return bad_type when the vertex without the tag by laura-ding · Pull Request #1273 · vesoft-inc/nebula-graph · GitHub

5 个赞

浙ICP备20010487号