Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Done
-
3.4.10
-
None
Description
TinkerGraph sometimes could not query float values.
Environment
Version: 3.4.10
OS : CentOS8
Storage Backend: in-memory
Bug description
TinkerGraph sometimes could not query float values. To be detailed, when create a new TinkerGraph database in memory. We could insert a float value but not query it.
Current behavior
gremlin > g.addV().property('vp2',0.65780294)
==>v[1011]
gremlin > g.V().has('vp2',0.65780294)
The second query returns with nothing. However, after several times or query it with 0.65780294f, it would return v[1011]. It means that TinkerGraph sometimes could not query float values which is abnormal.
Expected behavior
When enter the same code in neo4j-gremlin or janusgraph, it would return normal result like:
gremlin > g.V().has('vp2',0.65780294)
==>v[3192]
Reproduce
GraphTraversalSource g = connection.getG();
g.E().drop().iterate();
g.V().drop().iterate();
try {
String tuery = "g.addV().property('vp2',0.65780294)";
connection.getClient().submit(tuery);
String query = "g.V().has('vp2',0.65780294) ";
System.out.println("query: " + query);
try{
List<Result> results;
results = connection.getClient().submit(query).all().get();
for (Result r : results)Unknown macro: { System.out.println(r); }}
}
Or
gremlin > g.addV().property('vp2',0.65780294)
gremlin > g.V().has('vp2',0.65780294)