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/09/01 21:16:45 UTC

[jira] [Closed] (TINKERPOP3-823) addV() broken for multi-value properties

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

Marko A. Rodriguez closed TINKERPOP3-823.
-----------------------------------------
       Resolution: Fixed
    Fix Version/s: 3.1.0-incubating

This has been fixed. The problem was that {{Parameters}} was dealing with {{Map<Object,Object>}} when it should be dealing with {{Map<Object,List<Object>}}. I found two other issues (!!) in the process that I also fixed and added some complicated test cases to ensure proper behavior.

> addV() broken for multi-value properties
> ----------------------------------------
>
>                 Key: TINKERPOP3-823
>                 URL: https://issues.apache.org/jira/browse/TINKERPOP3-823
>             Project: TinkerPop 3
>          Issue Type: Bug
>          Components: process
>    Affects Versions: 3.1.0-incubating
>            Reporter: David Robinson
>            Assignee: Marko A. Rodriguez
>             Fix For: 3.1.0-incubating
>
>
> Multi-properties appear to be broken in 3.1.0-SNAPSHOT with addV()
> The TP3 3.1.0 snapshot documentation shows:
> {code}
> gremlin> graph = TinkerGraph.open()
> ==>tinkergraph[vertices:0 edges:0]
> gremlin> g = graph.traversal(standard())
> ==>graphtraversalsource[tinkergraph[vertices:0 edges:0], standard]
> gremlin> v = g.addV('name','marko','name','marko a. rodriguez').next()
> ==>v[0]
> gremlin> g.V(v).properties().count()
> ==>2
> {code}
> Building the master branch in TP3 which shows this:
>  <version>3.1.0-SNAPSHOT</version>
> shows the following:
> {code}
> gremlin> graph = TinkerGraph.open()
> ==>tinkergraph[vertices:0 edges:0]
> gremlin> g = graph.traversal(standard())
> ==>graphtraversalsource[tinkergraph[vertices:0 edges:0], standard]
> gremlin> v = g.addV('name','marko','name','marko a. rodriguez').next()
> ==>v[0]
> gremlin> g.V(v).properties().count()
> ==>1
> {code}
> However, this still works like the 3.0.0 GA:
> {code}
> gremlin> v2=graph.addVertex('name', 'firstversion', 'name', 'secondversion')
> ==>v[2]
> gremlin> g.V(v2).properties().count()
> ==>2
> {code}



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