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

Cole Greer commented on TINKERPOP-3056:
---------------------------------------

Resolved through a pair of follow-on fix CTR commits:
3.6-dev: 
https://github.com/apache/tinkerpop/commit/f7c64dabf07f6d5008bf457690b85b6a86d2c924
Master (4.x): 
https://github.com/apache/tinkerpop/commit/3015f370431aa890492c33f94fa31138a0099d92

> mergeE is updating vertices in certain conditions
> -------------------------------------------------
>
>                 Key: TINKERPOP-3056
>                 URL: https://issues.apache.org/jira/browse/TINKERPOP-3056
>             Project: TinkerPop
>          Issue Type: Bug
>          Components: process
>    Affects Versions: 3.6.6
>            Reporter: Stephen Mallette
>            Assignee: Stephen Mallette
>            Priority: Blocker
>             Fix For: 4.0.0, 3.6.7, 3.7.2
>
>
> {code}
> gremlin> g.addV('mytestlabel').property(id, 'testA').property('timestamp', 
> 1).as('a').
> ......1>   addV('mytestlabel').property(id, 'testA2').property('timestamp', 
> 1).as('a2').
> ......2>   addE('mytestlabel').from('a').to('a2').property('timestamp', 
> 2).valueMap(true)
> ==>[id:2,label:mytestlabel,timestamp:2]
> gremlin> g.V().mergeE([(T.label):'mytestlabel', (Direction.from): 'testA', 
> (Direction.to):'testA2']).
> ......1> option(onMatch, sideEffect(property(single, 'timestamp', 
> 4).property(single, 'edgelabel', 'exists')).
> ......2> constant([:])).valueMap(true)
> ==>[id:2,label:mytestlabel,timestamp:2]
> ==>[id:2,label:mytestlabel,timestamp:2]
> gremlin> g.V().valueMap(true)
> ==>[id:testA2,label:mytestlabel,edgelabel:[exists],timestamp:[4]]
> ==>[id:testA,label:mytestlabel,edgelabel:[exists],timestamp:[4]]
> {code}



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to