You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hugegraph.apache.org by GitBox <gi...@apache.org> on 2022/08/19 07:40:19 UTC

[GitHub] [incubator-hugegraph] choeoe opened a new issue, #1945: [Bug] Incorrect return value of the same query

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

   ### Bug Type (问题类型)
   
   _No response_
   
   ### 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: memory
   - OS: `database server`: wsl ubuntu  `java api`: windows
   - Data Size:  300 vertices, 300 edges
   [data.zip](https://github.com/apache/incubator-hugegraph/files/9379912/data.zip)
   Use hugegraph-tools-1.6.0  
   Unzip data.zip and run command:
   ```
   bin/hugegraph --url http://127.0.0.1:8080 graph-mode-set -m RESTORING
   bin/hugegraph --url http://127.0.0.1:8080 restore -t all -d data
   ```
   
   ### Expected & Actual behavior (期望与实际表现)
   
   `connection`
   ```
   HugeClient hugeclient = HugeClient.builder("http://localhost:8080", "hugegraph").configTimeout(3000).build();
   ```
   `query`
   ```
   GremlinManager gremlinManager = hugeclient .gremlin();
   String query = "g.E().has('ep1',-585962746).has('ep1', lt(1385437860)).bothV().count()"
   String query1 = "t0=g.E()\n" +
                   "t1=t0.has('ep1',-585962746)\n" +
                   "t2=t1.has('ep1', lt(1385437860))\n" +
                   "t3=t2.bothV()\n" +
                   "t4=t3.count()\n" +
                   "t4"
   ResultSet r1 = gremlinManager.gremlin(query).execute()
   ResultSet r2 = gremlinManager.gremlin(query1).execute()
   ```
   The two query did the same act but returned different results:
   ```
   [2]
   [198]
   ```
   
   ### 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] choeoe commented on issue #1945: [Bug] Incorrect return value of the same query

Posted by GitBox <gi...@apache.org>.
choeoe commented on issue #1945:
URL: https://github.com/apache/incubator-hugegraph/issues/1945#issuecomment-1304817056

   May I ask about the cause of the bug?
   @imbajin @javeme 


-- 
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] choeoe commented on issue #1945: [Bug] Incorrect return value of the same query

Posted by GitBox <gi...@apache.org>.
choeoe commented on issue #1945:
URL: https://github.com/apache/incubator-hugegraph/issues/1945#issuecomment-1231315651

   I have simplified it
   ```
   schema.propertyKey("ep0").asInt().ifNotExist().create();
   schema.vertexLabel("vl0").ifNotExist().create();
   schema.edgeLabel("el0").sourceLabel("vl0").targetLabel("vl0").properties("ep0").ifNotExist().create();
   schema.indexLabel("indexOnEl0").onE("el0").by("ep0").shard().ifNotExist().create();
   Vertex v0 = new com.baidu.hugegraph.structure.graph.Vertex("vl0");
   Vertex v1 = new com.baidu.hugegraph.structure.graph.Vertex("vl0");
   Vertex v2 = new com.baidu.hugegraph.structure.graph.Vertex("vl0");
   graph.addVertices(Arrays.asList(v0, v1, v2));
   Edge e0 = v0.addEdge("el0",v1,"ep0",-1);
   Edge e1 = v0.addEdge("el0",v2,"ep0",0);
   graph.addEdges(Arrays.asList(e0, e1));
   
   GremlinManager gremlin = connection.getHugespecial().gremlin();
   
   String query = "g.E().has('ep0',-1).has('ep0', lt(1)).bothV().count()";
   String query1 = "t0=g.E()\n" +
                   "t1=t0.has('ep1',-1)\n" +
                   "t2=t1.has('ep1', lt(1))\n" +
                   "t3=t2.bothV()\n" +
                   "t4=t3.count()\n" +
                   "t4";
   ```
   @imbajin 


-- 
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] choeoe commented on issue #1945: [Bug] Incorrect return value of the same query

Posted by GitBox <gi...@apache.org>.
choeoe commented on issue #1945:
URL: https://github.com/apache/incubator-hugegraph/issues/1945#issuecomment-1229906146

   [data.zip](https://github.com/apache/incubator-hugegraph/files/9442591/data.zip)
   I have reduced the dataset to 3 edges, and the problem still occurs


-- 
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