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

Bindings don't work in coalesce

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 3.2.3
    • Fix Version/s: 3.2.4
    • Component/s: structure
    • Labels:
      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

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

                Dates

                • Created:
                  Updated:
                  Resolved: