Uploaded image for project: 'TinkerPop'
  1. TinkerPop
  2. TINKERPOP-2603

TinkerGraph sometimes could not query float values.

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Done
    • 3.4.10
    • 3.6.0, 3.4.13, 3.5.2
    • tinkergraph
    • 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)

      Attachments

        1. TinkerGraph-queryfloat.md
          2 kB
          ABC
        2. Result.jpg
          597 kB
          ABC

        Activity

          People

            spmallette Stephen Mallette
            Moly97 ABC
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: