You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tinkerpop.apache.org by "ASF GitHub Bot (JIRA)" <ji...@apache.org> on 2017/10/18 23:07:00 UTC

[jira] [Commented] (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:comment-tabpanel&focusedCommentId=16210246#comment-16210246 ] 

ASF GitHub Bot commented on TINKERPOP-1803:
-------------------------------------------

GitHub user okram opened a pull request:

    https://github.com/apache/tinkerpop/pull/735

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

    https://issues.apache.org/jira/browse/TINKERPOP-1803
    
    Fixed an "attachement"-bug in `InjectStep` with a solution generalized to `StartStep`.
    
    VOTE +1

You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/apache/tinkerpop TINKERPOP-1803

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/tinkerpop/pull/735.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #735
    
----
commit 79b621c9a0ddc2d96f951c54ee3f1db3c8490d4c
Author: Marko A. Rodriguez <ok...@gmail.com>
Date:   2017-10-18T22:45:16Z

    Fixed an attachement-bug in  with a solution generalized to .

----


> 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
>
> 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)