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

Bindings don't work in coalesce

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 3.2.3
    • 3.2.4
    • structure
    • None

    Description

      gremlin> graph = EmptyGraph.instance()
      ==>emptygraph[empty]
      gremlin> g = graph.traversal().withRemote('conf/remote-graph.properties')
      ==>graphtraversalsource[emptygraph[empty], standard]
      gremlin> g.addV('fof').property('key',234)
      ==>v[0]
      gremlin> b = new Bindings()
      ==>{}
      gremlin> g.withBindings(b).V().has('fof','key',234).coalesce(__.V().has(b.of('l','fof'), b.of('k', 'key'), b.of('v',234)), __.addV(b.of('nl','fof')).property(b.of('sk','key'), b.of('sv',234))).property(b.of('nk','newkey'), b.of('nv','newvalue')).asAdmin().getBytecode()
      ==>[[], [V(), has(fof, key, 234), coalesce([[], [V(), has(fof, key, 234)]], [[], [addV(fof), property(key, 234)]]), property(binding[nk=newkey], binding[nv=newvalue])]]
      
      

      Attachments

        Issue Links

          Activity

            People

              okram Marko A. Rodriguez
              rdale Robert Dale
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: