[ 
https://issues.apache.org/jira/browse/TINKERPOP3-779?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14717236#comment-14717236
 ] 

Daniel Kuppitz commented on TINKERPOP3-779:
-------------------------------------------

Since it wasn't mentioned yet: We have other / more complex steps to produce 
the expected result:

{code}
gremlin> g.V().choose(out().out(), out().out(), out())
==>[v[1], v[4], v[5]]
==>[v[1], v[4], v[3]]
==>[v[4], v[5]]
==>[v[4], v[3]]
==>[v[6], v[3]]
{code}

We shouldn't add too much complexity to each and every step just to get all the 
possible results we can think of. It's good to have some highly performant 
basic steps with limitations and some of the more complex steps.

> coalesce should not forget path
> -------------------------------
>
>                 Key: TINKERPOP3-779
>                 URL: https://issues.apache.org/jira/browse/TINKERPOP3-779
>             Project: TinkerPop 3
>          Issue Type: Bug
>          Components: process
>    Affects Versions: 3.0.0-incubating
>            Reporter: Matt Frantz
>            Assignee: Matt Frantz
>
> It seems like the path along whichever branch of the {{coalesce}} step should 
> be preserved downstream.  In 3.0.0, this is not the case:
> {noformat}
> gremlin> g.V().out().out().path()
> ==>[v[1], v[4], v[5]]
> ==>[v[1], v[4], v[3]]
> gremlin> g.V().coalesce(out().out()).path()
> ==>[v[1], v[5]]
> ==>[v[1], v[3]]
> {noformat}
> I would expect the output of the second statement to equal the first.
> Also, to be clear, the path should reflect whichever of the traversal 
> arguments to {{coalesce}} were productive.
> {noformat}
> gremlin> g.V().out().out().path()
> ==>[v[1], v[4], v[5]]
> ==>[v[1], v[4], v[3]]
> gremlin> g.V().coalesce(out().out().out(), out().out()).path()
> ==>[v[1], v[5]]
> ==>[v[1], v[3]]
> {noformat}
> Again, I would expect the output of the second statement to equal the first.
> The path truncation behavior would be nice to preserve in the proposed 
> {{sub}} step (TINKERPOP3-716).



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to