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

Cardinality input with mergeE step shouldn't be allowed.

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Critical
    • Resolution: Fixed
    • 3.7.2
    • 4.0.0, 3.7.3
    • process
    • None

    Description

      gremlin> g.mergeE([(T.id):'11']).option(onMatch, ["weight":0.4], set)
      ==>e[11][4-created->3]
      
      gremlin> g.E().valueMap(true)
      ==>[id:11,label:created,weight:[set, 0.4]]
      ==>[id:12,label:created,weight:0.2]
      ==>[id:7,label:knows,weight:0.5]
      ==>[id:8,label:knows,weight:1.0]
      ==>[id:9,label:created,weight:0.4]
      ==>[id:10,label:created,weight:1.0]
      
      gremlin> g.mergeE([(T.id):'11']).option(onMatch, ["weight":0.75], set)
      ==>e[11][4-created->3]
      
      gremlin> g.E().valueMap(true)
      ==>[id:11,label:created,weight:[set, 0.75]]
      ==>[id:12,label:created,weight:0.2]
      ==>[id:7,label:knows,weight:0.5]
      ==>[id:8,label:knows,weight:1.0]
      ==>[id:9,label:created,weight:0.4]
      ==>[id:10,label:created,weight:1.0] 

      Attachments

        Activity

          People

            spmallette Stephen Mallette
            prashup Prashant
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: