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

mergeV with sideEffect not correctly updating properties

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Blocker
    • Resolution: Fixed
    • 3.6.4
    • 3.7.0
    • process
    • None

    Description

      A Gremlin user let me know about the following issue. If the query below is run twice, the name parameter on the 4567 vertex does not get updated. The name on the 1234 vertex does get updated. The query is written this way as not all databases support single cardinality as the default. The issue has been reproduced using both TinkerGraph and Amazon Neptune.

      g.mergeV([(T.id): 'test-test-1234']).
        option(onCreate, [(T.label): 'someLabel', 'name': 'name1']).
        option(onMatch, sideEffect(property(single,"name","name2")).constant([:])).
       mergeV([(T.id): 'test-test-4567']).
        option(onCreate, [(T.label): 'someLabel', 'name': 'name1']).
        option(onMatch, sideEffect(property(single,"name","name2")).constant([:]))

      Attachments

        Issue Links

          Activity

            People

              spmallette Stephen Mallette
              krlawrence Kelvin Lawrence
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: