[ 
https://issues.apache.org/jira/browse/TINKERPOP-1573?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15705392#comment-15705392
 ] 

Robert Dale commented on TINKERPOP-1573:
----------------------------------------

Looks like nested traversals:

{noformat}
gremlin> g.withBindings(b).V().has(b.of('l','fof'), b.of('k', 'key'), 
b.of('v',234)).where(__.has(b.of('l','fof'), b.of('k', 'key'), 
b.of('v',234))).asAdmin().getBytecode()
==>[[], [V(), has(binding[l=fof], binding[k=key], binding[v=234]), where([[], 
[has(fof, key, 234)]])]]

gremlin> g.withBindings(b).V().has('fof', 'key', 
234).where(__.has(b.of('l','fof'), b.of('k', 'key'), 
b.of('v',234))).asAdmin().getBytecode()
==>[[], [V(), has(fof, key, 234), where([[], [has(fof, key, 234)]])]]

{noformat}

> Bindings don't work in coalesce
> -------------------------------
>
>                 Key: TINKERPOP-1573
>                 URL: https://issues.apache.org/jira/browse/TINKERPOP-1573
>             Project: TinkerPop
>          Issue Type: Bug
>          Components: structure
>    Affects Versions: 3.2.3
>            Reporter: Robert Dale
>
> {noformat}
> 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])]]
> {noformat}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to