You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@hugegraph.apache.org by "zhengyingying (via GitHub)" <gi...@apache.org> on 2023/04/03 08:36:43 UTC
[GitHub] [incubator-hugegraph] zhengyingying opened a new issue, #2188: Inconsistent behavior when set bulk configuration to false
zhengyingying opened a new issue, #2188:
URL: https://github.com/apache/incubator-hugegraph/issues/2188
### Bug Type (问题类型)
gremlin (结果不合预期)
### 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 (环境信息)
- Server Version: 1.0.0 (Apache Release Version)
- Backend: inmemory
- OS: xx CPUs, xx G RAM, Ubuntu 2x.x / CentOS 7.x
- Data Size: xx vertices, xx edges <!-- (like 1000W 点, 9000W 边) -->
### Expected & Actual behavior (期望与实际表现)
When we set `withBulk` to false, we get inconsistent results when querying `E().outV()` and `E().outV().cont()`, where `E().outV()` returns `1` vertex, while `E().outV().cont()` returns `2`.
```
gremlin> :> hugegraph.traversal().E().outV()
==>[id:695565800861335552,label:person,type:vertex,properties:[age:12]]
==>[id:695565800861335552,label:person,type:vertex,properties:[age:12]]
gremlin> :> hugegraph.traversal().withBulk(false).E().outV()
==>[id:695565800861335552,label:person,type:vertex,properties:[age:12]]
gremlin> :> hugegraph.traversal().withBulk(false).E().outV().count()
==>2
```
### 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: issues-unsubscribe@hugegraph.apache.org.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@hugegraph.apache.org
For additional commands, e-mail: issues-help@hugegraph.apache.org
[GitHub] [incubator-hugegraph] zhengyingying commented on issue #2188: Inconsistent behavior when set bulk configuration to false
Posted by "zhengyingying (via GitHub)" <gi...@apache.org>.
zhengyingying commented on issue #2188:
URL: https://github.com/apache/incubator-hugegraph/issues/2188#issuecomment-1511390974
@javeme Hi, the graph data is as following.
```
connection.getHugespecial().schema().propertyKey("age").asInt().ifNotExist().create();
connection.getHugespecial().schema().propertyKey("year").asInt().ifNotExist().create();
// vertex
connection.getHugespecial().schema().vertexLabel("person").properties("age").nullableKeys("age").create();
connection.getHugespecial().schema().indexLabel("personbyage").onV("person").by("age").shard().ifNotExist().create();
// edge
connection.getHugespecial().schema().edgeLabel("knows").sourceLabel("person").targetLabel("person").properties("year").ifNotExist().create();
connection.getHugespecial().schema().edgeLabel("teach").sourceLabel("person").targetLabel("person").properties("year").ifNotExist().create();
connection.getHugespecial().schema().indexLabel("knowsbyperson").onE("knows").by("year").shard().ifNotExist().create();
connection.getHugespecial().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(person1).target(person2).property("year", 3);
Edge edge2 = new Edge("teach").source(person1).target(person3).property("year", 2);
graph.addEdges(Arrays.asList(edge1, edge2));
```
--
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: issues-unsubscribe@hugegraph.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@hugegraph.apache.org
For additional commands, e-mail: issues-help@hugegraph.apache.org
[GitHub] [incubator-hugegraph] javeme commented on issue #2188: Inconsistent behavior when set bulk configuration to false
Posted by "javeme (via GitHub)" <gi...@apache.org>.
javeme commented on issue #2188:
URL: https://github.com/apache/incubator-hugegraph/issues/2188#issuecomment-1511251387
Thanks for your report, can you share the sample data?
--
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: issues-unsubscribe@hugegraph.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@hugegraph.apache.org
For additional commands, e-mail: issues-help@hugegraph.apache.org