[Bug] Inconsistent results when executing equivalent queries
- Dominant language
- Java
- Stars
- 3.2k
- Forks
- 636
- Avg merge
- 3d 11h
- Merged PRs (30d)
- 14
Description
### Bug Type (问题类型)
gremlin (结果不合预期)
### Before submit
- [x] 我已经确认现有的 [Issues](https://github.com/apache/hugegraph/issues) 与 [FAQ](https://hugegraph.apache.org/docs/guides/faq/) 中没有相同 / 重复问题 (I have confirmed and searched that there are no similar problems in the historical issue and documents)
### Environment (环境信息)
HugeGraph 1.0
### Expected & Actual behavior (期望与实际表现)
Two equivalent queries output differently. The only difference is `as('x')`.
```
g.V().emit(__.loops().is(gte(1))).repeat(__.bothE().otherV()).times(2).as('x').emit(__.loops().is(gte(1))).repeat(__.inE().outV()).times(2).bothE().dedup().by(__.path()).otherV().count()
```
```
g.V().emit(__.loops().is(gte(1))).repeat(__.bothE().otherV()).times(2).emit(__.loops().is(gte(1))).repeat(__.inE().outV()).times(2).bothE().dedup().by(__.path()).otherV().count()
```
### Vertex/Edge example (问题点 / 边数据举例)
_No response_
### Schema [VertexLabel, EdgeLabel, IndexLabel] (元数据结构)
_No response_
Contributor guide
Assessment
This issue has not been assessed yet.