incubator-hugegraph icon indicating copy to clipboard operation
incubator-hugegraph copied to clipboard

[Bug] Throw ClassCastException

Open llooFlashooll opened this issue 2 years ago • 0 comments

Bug Type (问题类型)

other exception / error (其他异常报错)

Before submit

  • [X] 我已经确认现有的 IssuesFAQ 中没有相同 / 重复问题 (I have confirmed and searched that there are no similar problems in the historical issue and documents)

Environment (环境信息)

  • HugeGraph Version: 0.12.0
  • Storage Backend: inmemory
  • Mixed Index Backend: none
  • Link to discussed bug: none
  • Operating system: macOS 13.2.1
  • API/Driver: Java

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

I first randomly create a graph. Then when I run the following query: g.V().in('el2','el1').as('x').V().inE('el2').outV().where(within('x')) is thrown with an exception. I think this query is syntactically and semantically correct, but I keep triggering this kind of problem. The query generation rule can refer to: https://stackoverflow.com/questions/48067834/gremlin-intersection-operation.

  • Expected behavior: No exception should be expected to throw.

  • Actual behavior: A java.lang.ClassCastException is thrown. And I'm not really sure whether this problem should happen so I report this.

HugeGraph exception :
java.lang.ClassCastException: com.baidu.hugegraph.structure.HugeVertex cannot be cast to java.util.Collection

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

No response

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

No response

llooFlashooll avatar Mar 16 '23 03:03 llooFlashooll