thanks for adding this:

https://issues.apache.org/jira/browse/TINKERPOP-1895

i just commented. note that if you want to reduce extraneous data, you
don't want to use DetachedFactory. You want ReferenceFactory. But, for
3.3.1, we already configure the server with HaltedTraverserStrategy using
ReferenceFactory - see my code example in the comments on that issue.

On Tue, Feb 20, 2018 at 2:39 PM, Stephen Mallette <[email protected]>
wrote:

> no, it's not. that's really strange. can you please create an issue in
> jira for that?
>
> On Tue, Feb 20, 2018 at 2:15 PM, Moore, Branden James <[email protected]>
> wrote:
>
>> We’re using our gremlin-python traversals with the
>> HaltedTraverserStrategy(o.a.t.g.s.u.d.DetachedFactory), to decrease the
>> extraneous amount of data returned in large queries.  Today I discovered
>> that if one uses this strategy, lambdas no longer work.
>>
>> For example, from the TinkerPop docs:
>> g.V().out().map(lambda: "lambda x: len(x.get().value('name'))").s
>> um().toList()
>>
>> Will give an error:
>> GremlinServerError: 599: NameError: name 'TraversalStrategy' is not
>> defined in <script> at line number 1
>>
>> Is this the expected behavior when using the
>> HaltedTraverserStrategy(DetachedFactory) ?
>>
>> Thanks,
>>
>>   *   Branden
>>
>>
>

Reply via email to