Gremlin/Neptune:按顶点排序边 属性

Gremlin/Neptune: sort edges by vertex property

使用远程连接到 Neptune 数据库实例的 gremlin 控制台,我正在抓取所有带有特定标签的边,并希望按输出顶点的 ID 对它们进行排序。我收到此错误:"code":"UnsupportedOperationException","detailedMessage":"com.amazon.neptune.storage.volcano.ast.CutoffNode cannot be cast to com.amazon.neptune.storage.volcano.ast.AbstractGroupNode"

示例数据:

g.addV('user').property(id,'1').
  addV('content').property(id,'2').
  addE('history').property('val',9).from(g.V('1')).to(g.V('2'))

查询和输出:

g.E().hasLabel('history').order().by('val')
==>e[3][1-history>2]
g.E().hasLabel('history').outV().id()
==>1
g.E().hasLabel('history').order().by(outV().id())
{"requestId":<stuff>,"code":"UnsupportedOperationException","detailedMessage":
"com.amazon.neptune.storage.volcano.ast.CutoffNode cannot be cast to 
com.amazon.neptune.storage.volcano.ast.AbstractGroupNode"}

我希望最后一个的结果与第一个相同。我在 TinkerGraph 中尝试了相同的遍历,但没有出现错误,因此从这一点和消息来看,它特别是一个 Neptune 问题。谷歌搜索没有显示任何内容。

是否有一个遍历可以满足我的要求?我做错了什么?

我会调查引发错误的原因,但在短期内我认为此解决方法应该有效。如果没有,请告诉我。

g.E().order().by(identity().outV().id())

干杯, 开尔文