tinkerpop-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "stephen mallette (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (TINKERPOP3-783) asVertex Does Not Always Return Correct State
Date Mon, 03 Aug 2015 14:07:04 GMT

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

stephen mallette commented on TINKERPOP3-783:
---------------------------------------------

The little snippet of code i provided in the description is the "test case" basically.  {{asVertex}}
does not return {{true} for:

{code}
g.V().addV().property("this", "thing")
{code}

> asVertex Does Not Always Return Correct State
> ---------------------------------------------
>
>                 Key: TINKERPOP3-783
>                 URL: https://issues.apache.org/jira/browse/TINKERPOP3-783
>             Project: TinkerPop 3
>          Issue Type: Bug
>          Components: process
>    Affects Versions: 3.0.0-incubating
>            Reporter: stephen mallette
>            Assignee: Marko A. Rodriguez
>             Fix For: 3.0.1-incubating, 3.1.0-incubating
>
>
> In {{AddPropertyStep}} the {{asVertex}} member variable is currently set as follows:
> {code}
> this.asVertex = null != cardinality || this.vertexPropertyKeyValues.length > 0;
> {code}
> which basically means that {{asVertex}} will get the "wrong" value if {{property}} is
called like this:
> {code}
> g.V().addV().property("this", "thing")
> {code}
> I would expect {{asVertex}} to return true in this case.  This value is relied upon internal
to the {{Step}} and by {{TraversalStrategy}} implementations to determine the nature of what
the the {{Step}} is processing so it's important that it return properly under this condition.



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

Mime
View raw message