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

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

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Critical
    • Resolution: Fixed
    • 3.2.6
    • 3.2.7, 3.3.1
    • process
    • 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

              okram Marko A. Rodriguez
              spmallette Stephen Mallette
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: