Inconsistently process in().inE().order().by() and out().outE().order().by()
- Dominant language
- Java
- Stars
- 3.2k
- Forks
- 636
- Avg merge
- 3d 11h
- Merged PRs (30d)
- 14
Description
### Bug Type (问题类型)
None
### 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 (环境信息)
- Server Version: 1.0.0 (Apache Release Version)
- Backend: RocksDB x nodes, HDD or SSD
- OS: xx CPUs, xx G RAM, Ubuntu 2x.x / CentOS 7.x
- Data Size: xx vertices, xx edges
### Expected & Actual behavior (期望与实际表现)
The following two queries have the same execution semantics, but they return inconsistent result. I can also get the inconsistency when replacing `in().inE()` to `out().outE()`.
```
gremlin:> g.V().in().inE().order().by(desc)
org.apache.hugegraph.structure.HugeEdge cannot be cast to java.lang.Comparable
gremlin:> g.withoutStrategies(HugeVertexStepStrategy).V().in().inE().order().by(desc)
```
What's interesting is that if I replace `in().inE()` to `in().outE()` or replace `out().outE()` to `out().inE()`, I can get the consistent result.
```
gremlin:> g.V().in().outE().order().by(desc)
org.apache.hugegraph.structure.HugeEdge cannot be cast to java.lang.Comparable
gremlin:> g.withoutStrategies(HugeVertexStepStrategy).V().in().outE().order().by(desc)
org.apache.hugegraph.structure.HugeEdge cannot be cast to java.lang.Comparablee
```
### Vertex/Edge example (问题点 / 边数据举例)
_No response_
### Schema [VertexLabel, EdgeLabel, IndexLabel] (元数据结构)
_No response_
Contributor guide
Assessment
This issue has not been assessed yet.