[
https://issues.apache.org/jira/browse/TINKERPOP-1573?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15705713#comment-15705713
]
ASF GitHub Bot commented on TINKERPOP-1573:
-------------------------------------------
GitHub user okram opened a pull request:
https://github.com/apache/tinkerpop/pull/507
TINKERPOP-1573: Bindings don't work in coalesce
https://issues.apache.org/jira/browse/TINKERPOP-1573
The solution to this problem uses `ThreadLocal`. It sucks, but I don't know
of any other way of doing this. Whats funny is that I knew this problem existed
as in my notes, the `ThreadLocal` solution is what I came up with back then. We
just never had a test case the demonstrated the anonymous traversal bindings
problem and thus, I never implemented the "solution."
VOTE +1.
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/apache/tinkerpop TINKERPOP-1573
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/tinkerpop/pull/507.patch
To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:
This closes #507
----
----
> 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)