[
https://issues.apache.org/jira/browse/TINKERPOP-2315?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17206517#comment-17206517
]
Cyril Scetbon commented on TINKERPOP-2315:
------------------------------------------
[~spmallette] there is something really weird happening in an iPython session.
the clone works well but as soon as I check the value of the traversal, I can't
use it anymore ...
{noformat}
In [28]: graph_traversal = traversal.V().hasLabel('OID')In [29]:
graph_traversal.clone().limit(10).count().next()
Out[29]: 10In [30]: graph_traversal.clone().limit(10).count().next()
Out[30]: 10In [31]: graph_traversal
Out[31]: [['V'], ['hasLabel', 'OID'], ['values',
'_ipython_canary_method_should_not_exist_']]
In [32]: graph_traversal.clone().limit(10).count().next()
{noformat}
It gets stuck on the execution of In[32]. Sometimes I even get
{noformat}
GremlinServerError: 499:
{"requestId":"98a7824e-aa23-4eef-b7ee-1f6f2acb96ba","code":"UnsupportedOperationException","detailedMessage":"PropertyValue
cannot have properties"}
{noformat}
Can you check what's going on ? I used the latest 3.4.8
> Implement some form of clone() or reset() for Traversal in GLVs
> ---------------------------------------------------------------
>
> Key: TINKERPOP-2315
> URL: https://issues.apache.org/jira/browse/TINKERPOP-2315
> Project: TinkerPop
> Issue Type: Improvement
> Components: dotnet, javascript, python
> Affects Versions: 3.3.9
> Reporter: Stephen Mallette
> Assignee: Stephen Mallette
> Priority: Major
> Fix For: 3.5.0, 3.4.5, 3.3.10
>
>
> There doesn't seem to be a method to do what we do in Java fairly often:
> {code}
> attached = g.V().hasLabel('OID').out('attached')
> assert attached.clone().count().next() == 4
> uids = attached.clone().dedup().toList()
> {code}
--
This message was sent by Atlassian Jira
(v8.3.4#803005)