tinkerpop-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Marko A. Rodriguez (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (TINKERPOP3-793) select should stop traversal on unproductive by
Date Mon, 03 Aug 2015 14:08:04 GMT

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

Marko A. Rodriguez commented on TINKERPOP3-793:
-----------------------------------------------

I think we can do this. Just to be clear and consistent, in {{SelectStep}} now, if there is
not "a" (lets say), then what do we do? Stop the traversal, or just drop that "row." I remember
it use to throw an exception, but we changed it. Whatever we changed it to is what we should
do for this situation.

> 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.0-incubating
>            Reporter: Matt Frantz
>            Assignee: Marko A. Rodriguez
>
> 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)

Mime
View raw message