Uploaded image for project: 'TinkerPop'
  1. TinkerPop
  2. TINKERPOP-3056

mergeE is updating vertices in certain conditions

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Blocker
    • Resolution: Fixed
    • 3.6.6
    • 4.0.0, 3.6.7, 3.7.2
    • process
    • None

    Description

      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]]
      

      Attachments

        Issue Links

          Activity

            People

              spmallette Stephen Mallette
              spmallette Stephen Mallette
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: