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

inject() doesn't re-attach with remote traversals

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Critical
    • Resolution: Fixed
    • Affects Version/s: 3.2.6
    • Fix Version/s: 3.2.7, 3.3.1
    • Component/s: process
    • Labels:
      None

      Description

      In the console we get this:

      gremlin> v2 = g.V(2).next()
      ==>v[2]
      gremlin> g.V(1).out().inject(v2).values("name")
      ==>vadas
      ==>lop
      ==>vadas
      ==>josh
      

      From gremlin-python we can see:

      >>> v2 = g.V(2).next()
      >>> g.V(1).out().inject(v2).values("name").toList()
      [u'lop', u'vadas', u'josh']
      

      and using

      withRemote()

      in java:

      gremlin> v2 = g.V(2).next()
      ==>v[2]
      gremlin> g.V(1).out().inject(v2).values("name")
      ==>lop
      ==>vadas
      ==>josh
      

      Since inject() doesn't re-attach the vertex when values() gets called it acts on a reference vertex with no properties and returns nothing.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                okram Marko A. Rodriguez
                Reporter:
                spmallette stephen mallette
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: