Skip to content

[Bug] gremlin查询结果不符合预期 #1900

@Ckuangf

Description

@Ckuangf

Bug Type (问题类型)

gremlin (结果不合预期)

Before submit

  • 我已经确认现有的 IssuesFAQ 中没有相同 / 重复问题

Environment (环境信息)

  • Server Version: v0.11.x
  • Backend: RocksDB x nodes, HDD or SSD
  • OS: xx CPUs, xx G RAM, Centos 7.x
  • Data Size: xx vertices, xx edges

Expected & Actual behavior (期望与实际表现)

实际上在一度查询时正常,二度查询时只能查出来单条路径:
使用数据 huge中构造的点边数据如下:
image
二度查询时,只能查询出来第二条路径:
image
一度查询时,可以查询出来路径一和路径二
image

期望可以正常查询出2条路径

实际上通过gremliny验证gremlin语句时:
一度查询:
image
二度查询 两条结果正常查询出来:
image

gremliny地址:
https://gremlify.com/ida02brvl5/1
gremliny 构造数据:
g.addV('Vertex').as('1').
addV('Vertex').as('2').
addV('Vertex').as('3').
addV('Vertex').as('4').
addE('child').from('1').to('2').addE('child').
from('2').to('3').addE('child').from('4').
to('3')
查询语句:
g.V(2853).repeat(inE("child").outV().simplePath()).until(or(inE().count().is(0),loops().is(eq(2)))).path()

任意类似的点边关系在huge中查询结果一致,二度查询时均会缺失只有一度结果那条路径

Vertex/Edge example (问题点 / 边数据举例)

No response

Schema [VertexLabel, EdgeLabel, IndexLabel] (元数据结构)

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions