### Bug Type (问题类型) gremlin (结果不合预期) ### Before submit - [X] 我已经确认现有的 [Issues](https://github.com/hugegraph/hugegraph/issues) 与 [FAQ](https://hugegraph.github.io/hugegraph-doc/guides/faq.html) 中没有相同 / 重复问题 ### 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 <!-- (like 1000W 点, 9000W 边) --> ### Expected & Actual behavior (期望与实际表现) 实际上在一度查询时正常,二度查询时只能查出来单条路径: 使用数据 huge中构造的点边数据如下:  二度查询时,只能查询出来第二条路径:  一度查询时,可以查询出来路径一和路径二  期望可以正常查询出2条路径 实际上通过gremliny验证gremlin语句时: 一度查询:  二度查询 两条结果正常查询出来:  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_
Activity
imbajin commentedon Jun 13, 2022
感谢提供信息, 有试过用 kneighbor 接口 (POST 版, 可带 path) 尝试查询2度路径, 看看是否也有同样问题么?
另外版本是最新的 0.12-release 么
Ckuangf commentedon Jun 13, 2022
使用的是0.11.2版本, 有试过用 kneighbor 接口 (POST 版, 可带 path) 这个接口指的是使用restAPI进行查询的接口么
imbajin commentedon Jun 13, 2022
是的, 可以用 rest-api 里的对比一下, 可以更快排除和定位问题 (当然基于最新server是更好)
javeme commentedon Jun 13, 2022
请使用规范的Gremlin语句查询:
整理了一下示例数据:
javeme commentedon Jun 13, 2022
我这边使用
inE().count().is(0)方式的查询结果如下:{ "requestId": "32f89c6f-a8cf-4717-baed-0a8631684adf", "status": { "message": "", "code": 200, "attributes": { } }, "result": { "data": [ { "labels": [], "objects": [ { "id": 3, "label": "node", "type": "vertex", "properties": { } }, { "id": "L4>1>>L3", "label": "child", "type": "edge", "outV": 4, "outVLabel": "node", "inV": 3, "inVLabel": "node", "properties": { } }, { "id": 4, "label": "node", "type": "vertex", "properties": { } } ] }, { "labels": [], "objects": [ { "id": 3, "label": "node", "type": "vertex", "properties": { } }, { "id": "L2>1>>L3", "label": "child", "type": "edge", "outV": 2, "outVLabel": "node", "inV": 3, "inVLabel": "node", "properties": { } }, { "id": 2, "label": "node", "type": "vertex", "properties": { } }, { "id": "L1>1>>L2", "label": "child", "type": "edge", "outV": 1, "outVLabel": "node", "inV": 2, "inVLabel": "node", "properties": { } }, { "id": 1, "label": "node", "type": "vertex", "properties": { } } ] } ], "meta": { } } }Ckuangf commentedon Jun 14, 2022
感谢