You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tinkerpop.apache.org by "Marko A. Rodriguez (JIRA)" <ji...@apache.org> on 2017/10/19 17:38:00 UTC

[jira] [Closed] (TINKERPOP-1803) inject() doesn't re-attach with remote traversals

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

Marko A. Rodriguez closed TINKERPOP-1803.
-----------------------------------------
       Resolution: Fixed
    Fix Version/s: 3.3.1
                   3.2.7

> inject() doesn't re-attach with remote traversals
> -------------------------------------------------
>
>                 Key: TINKERPOP-1803
>                 URL: https://issues.apache.org/jira/browse/TINKERPOP-1803
>             Project: TinkerPop
>          Issue Type: Bug
>          Components: process
>    Affects Versions: 3.2.6
>            Reporter: stephen mallette
>            Assignee: Marko A. Rodriguez
>            Priority: Critical
>             Fix For: 3.2.7, 3.3.1
>
>
> In the console we get this:
> {code}
> gremlin> v2 = g.V(2).next()
> ==>v[2]
> gremlin> g.V(1).out().inject(v2).values("name")
> ==>vadas
> ==>lop
> ==>vadas
> ==>josh
> {code}
> From gremlin-python we can see:
> {code}
> >>> v2 = g.V(2).next()
> >>> g.V(1).out().inject(v2).values("name").toList()
> [u'lop', u'vadas', u'josh']
> {code}
> and using {code}withRemote(){code} in java:
> {code}
> gremlin> v2 = g.V(2).next()
> ==>v[2]
> gremlin> g.V(1).out().inject(v2).values("name")
> ==>lop
> ==>vadas
> ==>josh
> {code}
> Since {{inject()}} doesn't re-attach the vertex when {{values()}} gets called it acts on a reference vertex with no properties and returns nothing.



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)