You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tinkerpop.apache.org by "Stephen Mallette (Jira)" <ji...@apache.org> on 2021/08/24 18:14:00 UTC

[jira] [Closed] (TINKERPOP-2603) TinkerGraph sometimes could not query float values.

     [ https://issues.apache.org/jira/browse/TINKERPOP-2603?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Stephen Mallette closed TINKERPOP-2603.
---------------------------------------
    Fix Version/s: 3.5.2
                   3.4.13
                   3.6.0
         Assignee: Stephen Mallette
       Resolution: Done

Added documentation as described in previous comment as CTR:

https://github.com/apache/tinkerpop/commit/610a18b959dbaa3f43e59fe6ee3b9e0a5747b639

> 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
>            Reporter: Zheng Qin
>            Assignee: Stephen Mallette
>            Priority: Major
>             Fix For: 3.6.0, 3.4.13, 3.5.2
>
>         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)