You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tinkerpop.apache.org by "Lei Tang (Jira)" <ji...@apache.org> on 2023/02/27 05:22:00 UTC
[jira] [Created] (TINKERPOP-2875) Duplicate elements are omitted when turning off bulk optimization
Lei Tang created TINKERPOP-2875:
-----------------------------------
Summary: Duplicate elements are omitted when turning off bulk optimization
Key: TINKERPOP-2875
URL: https://issues.apache.org/jira/browse/TINKERPOP-2875
Project: TinkerPop
Issue Type: Bug
Reporter: Lei Tang
I create three vertices and two edges.
{code:java}
Vertex v1 = g.addV("vl0").property("vp0", 1).next(); // v[1]
Vertex v2 = g.addV("vl0").property("vp0", 2).next(); // v[2]
Vertex v3 = g.addV("vl0").property("vp0", 3).next(); // v[3]
Edge e1 = g.addE("el0").from(v1).to(v2).next();
Edge e2 = g.addE("el0").from(v1).to(v3).next();{code}
When I execute the query 'g.E().outV()' without using bulk optimization, I expect the result \{v1,v1} is returned. However, it removes the duplicate vertices.
{code:java}
gremlin> :> g.withBulk(false).E().outV()
==>v[1]
gremlin> :> g.E().outV()
==>v[1]
==>v[1]
{code}
Since I do not use bulk operations in this query, I expect that even if we turn off bulk opitmization, we can compute the correct result.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)