You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hugegraph.apache.org by "zhengyingying (via GitHub)" <gi...@apache.org> on 2023/02/24 13:23:56 UTC

[GitHub] [incubator-hugegraph] zhengyingying opened a new issue, #2121: Incorrect result when executing inE() without using HugeVertexStepStrategy

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

   ### Bug Type (问题类型)
   
   gremlin (结果不合预期)
   
   ### Before submit
   
   - [X] 我已经确认现有的 [Issues](https://github.com/hugegraph/hugegraph/issues) 与 [FAQ](https://hugegraph.github.io/hugegraph-doc/guides/faq.html) 中没有相同 / 重复问题
   
   ### Environment (环境信息)
   
   - Server Version: v0.12.0
   - Backend: in memory 
   - OS: xx CPUs, xx G RAM, Centos 7.x 
   - Data Size:  xx vertices, xx edges <!-- (like 1000W 点, 9000W 边) -->
   
   
   ### Expected & Actual behavior (期望与实际表现)
   
   When I execute the query `g.E().inV().inE('teach')` without HugeVertexStepStrategy, it returns an empty set, instead of the expected result set. However, we can get the correct result when executing the query `g.E().inV()` without HugeVertexStepStrategy.
   
   ```
   gremlin> g.withoutStrategies(HugeVertexStepStrategy).E().inV().inE('teach')
   // actual result
   {}
   // expected result
   ==>[id:L693854165436203010>2>>L693854165436203008,label:teach,type:edge,outV:693854165436203010,outVLabel:person,inV:693854165436203008,inVLabel:person,properties:[year:2]]
   ==>[id:L693854165436203010>2>>L693854165436203008,label:teach,type:edge,outV:693854165436203010,outVLabel:person,inV:693854165436203008,inVLabel:person,properties:[year:2]]
   ```
   
   
   The graph is created as following.
   
   ```
   hugegraph.schema().propertyKey("age").asInt().ifNotExist().create();
   hugegraph.schema().propertyKey("year").asInt().ifNotExist().create();
   
   // vertex
   hugegraph.schema().vertexLabel("person").properties("age").nullableKeys("age").create();
   hugegraph.schema().indexLabel("personbyage").onV("person").by("age").shard().ifNotExist().create();
   
   // edge
   hugegraph.schema().edgeLabel("knows").sourceLabel("person").targetLabel("person").properties("year").ifNotExist().create();
   hugegraph.schema().edgeLabel("teach").sourceLabel("person").targetLabel("person").properties("year").ifNotExist().create();
   hugegraph.schema().indexLabel("knowsbyperson").onE("knows").by("year").shard().ifNotExist().create();
   hugegraph.schema().indexLabel("teachbyperson").onE("teach").by("year").shard().ifNotExist().create();
   
   GraphManager graph = connection.getHugespecial().graph();
   
    /** create graph data */
   Vertex person1 = new Vertex("person").property("age", 12);
   Vertex person2 = new Vertex("person").property("age", 23);
   Vertex person3 = new Vertex("person").property("age", 24);
   
   graph.addVertices(Arrays.asList(person1, person2, person3));
   
   Edge edge1 = new Edge("knows").source(person2).target(person1).property("year", 3);
   Edge edge2 = new Edge("teach").source(person3).target(person1).property("year", 2);
   graph.addEdges(Arrays.asList(edge1, edge2));
   ```
   
   
   ### 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: dev-unsubscribe@hugegraph.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [incubator-hugegraph] javeme commented on issue #2121: Incorrect result when executing inE() without using HugeVertexStepStrategy

Posted by "javeme (via GitHub)" <gi...@apache.org>.
javeme commented on issue #2121:
URL: https://github.com/apache/incubator-hugegraph/issues/2121#issuecomment-1443937901

   Thank you for the detailed process of reproduction~ we will fix it as soon as possible


-- 
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: dev-unsubscribe@hugegraph.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [incubator-hugegraph] zhengyingying commented on issue #2121: Incorrect result when executing inE() without using HugeVertexStepStrategy

Posted by "zhengyingying (via GitHub)" <gi...@apache.org>.
zhengyingying commented on issue #2121:
URL: https://github.com/apache/incubator-hugegraph/issues/2121#issuecomment-1445548384

   Thanks for your reply.


-- 
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: dev-unsubscribe@hugegraph.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org