-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Open
Labels
Description
-
Version: 1.1.0
-
Storage Backend: inmemory
-
Mixed Index Backend: none
-
Link to discussed bug:
-
Expected Behavior:
When i executeg.V().order().by(asc).has('vp3',0.62307286)andg.V().order().by(asc).match(__.as('start0').has('vp3',0.62307286).as('m0')).select('m0'). Both queries need returns the same results.When i execute both queries on HugeGraph, they return same results and met the expectations.
-
Current Behavior:
The first query returns:result{object=v[32896] class=org.apache.tinkerpop.gremlin.structure.util.detached.DetachedVertex}
The second query returns: empty results. -
Steps to Reproduce:
- connect to a empty graph
- Insert the target node into the graph and execute two queries above
GraphTraversalSource g = test.getG();
g.E().drop().iterate();
g.V().drop().iterate();
g.addV().property("vp3", 0.62307286).next();
String query1 = "g.V().has('vp3',0.62307286).count()";
String query2 = "g.V().order().by(asc).match(__.as('start0').has('vp3',0.62307286).as('m0')).select('m0')" ;
try{
List<Result> results = test.getClient().submit(query1).all().get();
for (Result r : results) {
System.out.println(r);
}
System.out.println("=============");
List<Result> results1 = test.getClient().submit(query2).all().get();
for (Result r : results1) {
System.out.println(r);
}
}catch (Exception e){
e.printStackTrace();
}
- The first query returns
result{object=v[32896] class=org.apache.tinkerpop.gremlin.structure.util.detached.DetachedVertex}, the second returns empty results.