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 2015/06/03 18:30:37 UTC

[jira] [Commented] (TINKERPOP3-619) select should not throw

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

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

Ah. I just realized that we already do a filter if the property key doesn't bind in {{HasStep}}.

{code}
gremlin> g.V().has('age',gt(30))
==>v[4]
==>v[6]
{code}

Good. Then we are consistent. Now, to make {{WhereStep}} behave as such and that is the model for TinkerPop3 bindings.

> select should not throw
> -----------------------
>
>                 Key: TINKERPOP3-619
>                 URL: https://issues.apache.org/jira/browse/TINKERPOP3-619
>             Project: TinkerPop 3
>          Issue Type: Improvement
>          Components: process
>            Reporter: Matt Frantz
>            Assignee: Marko A. Rodriguez
>             Fix For: 3.0.0.GA
>
>
> Rather than raise {{IllegalArgumentException}}, if {{select}} cannot find the label, it should return {{null}}.  This is preferable because of the difficulty of dealing with exceptions during traversal.  It is not always indicative of a static flaw in the traversal, since conditional logic in the traversal may bypass certain {{as}} steps.



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