You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tinkerpop.apache.org by "stephen mallette (JIRA)" <ji...@apache.org> on 2015/10/13 12:41:05 UTC

[jira] [Reopened] (TINKERPOP3-793) select should stop traversal on unproductive by

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

stephen mallette reopened TINKERPOP3-793:
-----------------------------------------

It's good that you're creating an application with Gremlin.  It's a nice way to notice things that other users might simply gloss over.  I'm not changing my mind about keeping it as-is, but I would perhaps prefer it to be moved out of 3.1.0 and left open for more thought.  

We have to re-open anyway, because it was closed with "Fixed" as the resolution and the version is still in there so it will show up on the CHANGELOG if we leave it as-is.  Anyway, I'm reopening for those reasons.

> select should stop traversal on unproductive by
> -----------------------------------------------
>
>                 Key: TINKERPOP3-793
>                 URL: https://issues.apache.org/jira/browse/TINKERPOP3-793
>             Project: TinkerPop 3
>          Issue Type: Improvement
>          Components: process
>    Affects Versions: 3.0.1-incubating
>            Reporter: Matt Frantz
>            Assignee: Marko A. Rodriguez
>              Labels: breaking
>
> Instead of throwing an exception, we should stop traversal if a {{by}} clause fails to produce.
> Current:
> {noformat}
> gremlin> g.V().as('a').out().out().as('b')
>   .select('a', 'b')
>   .by('name')
>   .by(has('name', 'lop').values('name'))
> The provided start does not map to a value: v[5]->[HasStep([name.eq(lop)])]
> {noformat}
> Desired:
> {noformat}
> gremlin> g.V().as('a').out().out().as('b')
>   .select('a', 'b')
>   .by('name')
>   .by(has('name', 'lop').values('name'))
> ==>[a:marko, b:lop]
> {noformat}



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