You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tinkerpop.apache.org by "Zheng Qin (Jira)" <ji...@apache.org> on 2021/08/19 13:01:00 UTC
[jira] [Created] (TINKERPOP-2603) TinkerGraph sometimes could not
query float values.
Zheng Qin created TINKERPOP-2603:
------------------------------------
Summary: TinkerGraph sometimes could not query float values.
Key: TINKERPOP-2603
URL: https://issues.apache.org/jira/browse/TINKERPOP-2603
Project: TinkerPop
Issue Type: Bug
Components: tinkergraph
Affects Versions: 3.4.10
Environment: OS: CentOS 8
Tinkerpop 3.4.10
Reporter: Zheng Qin
Attachments: Result.jpg, TinkerGraph-queryfloat.md
h1. TinkerGraph sometimes could not query float values.
h3. Environment
Version: 3.4.10
OS : CentOS8
Storage Backend: in-memory
h3. 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.
h3. Current behavior
{quote}gremlin > g.addV().property('vp2',0.65780294)
==>v[1011]
gremlin > g.V().has('vp2',0.65780294){quote}
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.
h3. Expected behavior
When enter the same code in neo4j-gremlin or janusgraph, it would return normal result like:
{quote}gremlin > g.V().has('vp2',0.65780294)
==>v[3192]{quote}
h3. Reproduce
{quote} 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) {
System.out.println(r);
}
}
}{quote}
Or
{quote}gremlin > g.addV().property('vp2',0.65780294)
gremlin > g.V().has('vp2',0.65780294) {quote}
--
This message was sent by Atlassian Jira
(v8.3.4#803005)