spmallette commented on code in PR #2012:
URL: https://github.com/apache/tinkerpop/pull/2012#discussion_r1165968745
##########
gremlin-core/src/main/java/org/apache/tinkerpop/gremlin/process/traversal/step/map/TailLocalStep.java:
##########
@@ -54,7 +54,7 @@ protected S map(final Traverser.Admin<S> traverser) {
start instanceof Collection ? ((Collection)
start).size() :
start instanceof Path ? ((Path) start).size() :
start instanceof Iterable ?
IteratorUtils.count((Iterable) start) :
- this.limit;
+
IteratorUtils.count(IteratorUtils.asIterator(start));
Review Comment:
is this meant as some sort of safety? `RangeLocalStep.applyRange()` seems to
satisfy the issue, no? no exception thrown here:
```
gremlin> g.inject([1,2,3],[1],10).tail(local)
==>3
==>1
==>10
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]