You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tinkerpop.apache.org by "ASF GitHub Bot (JIRA)" <ji...@apache.org> on 2019/02/18 14:40:00 UTC

[jira] [Commented] (TINKERPOP-2159) EventStrategy doesn't handle multi-valued properties

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

ASF GitHub Bot commented on TINKERPOP-2159:
-------------------------------------------

dkuppitz commented on pull request #1064: TINKERPOP-2159 EventStrategy doesn't handle multi-valued properties
URL: https://github.com/apache/tinkerpop/pull/1064
 
 
   https://issues.apache.org/jira/browse/TINKERPOP-2159
   
   Fixed multi-valued property handling in `EventStrategy` / `AddPropertyStep`. The `EventStrategy` output for the traversals added in `TinkerGraphPlayTest.testPlayDK()` is as follows:
   
   ```
   Vertex [v[1]] added to graph [tinkergraph[vertices:1 edges:0]]
   Vertex [v[1]] property [vp[name->null]] change to [name1] in graph [tinkergraph[vertices:1 edges:0]]
   Vertex [v[1]] property [vp[name->name1]] change to [name2] in graph [tinkergraph[vertices:1 edges:0]]
   Vertex [v[1]] property [vp[name->name2]] change to [name2] in graph [tinkergraph[vertices:1 edges:0]]
   Vertex [v[2]] added to graph [tinkergraph[vertices:2 edges:0]]
   Vertex [v[2]] property [vp[name->null]] change to [name1] in graph [tinkergraph[vertices:2 edges:0]]
   Vertex [v[2]] property [vp[name->null]] change to [name2] in graph [tinkergraph[vertices:2 edges:0]]
   Vertex [v[2]] property [vp[name->null]] change to [name2] in graph [tinkergraph[vertices:2 edges:0]]
   Vertex [v[3]] added to graph [tinkergraph[vertices:3 edges:0]]
   Vertex [v[3]] property [vp[name->null]] change to [name1] in graph [tinkergraph[vertices:3 edges:0]]
   Vertex [v[3]] property [vp[name->null]] change to [name2] in graph [tinkergraph[vertices:3 edges:0]]
   Vertex [v[3]] property [vp[name->name2]] change to [name2] in graph [tinkergraph[vertices:3 edges:0]]
   ```
   
   It's not quite right as the old property will always be `vp[name->null]` when `Cardinality.list` is used or when `Cardinality.set` is used and the value doesn't exist yet. However, I think that's the only to make it work without any major breaking changes.
 
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


> EventStrategy doesn't handle multi-valued properties
> ----------------------------------------------------
>
>                 Key: TINKERPOP-2159
>                 URL: https://issues.apache.org/jira/browse/TINKERPOP-2159
>             Project: TinkerPop
>          Issue Type: Bug
>          Components: process
>    Affects Versions: 3.3.5
>            Reporter: Daniel Kuppitz
>            Assignee: Daniel Kuppitz
>            Priority: Major
>
> As shown [here|https://groups.google.com/d/msgid/gremlin-users/434c5397-c854-4856-ae4a-48146303ae5f%40googlegroups.com?utm_medium=email&utm_source=footer].



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)