llooFlashooll opened a new issue, #2170:
URL: https://github.com/apache/incubator-hugegraph/issues/2170

   ### Bug Type (问题类型)
   
   other exception / error (其他异常报错)
   
   ### 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 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_


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to