Github user twilmes commented on a diff in the pull request:
https://github.com/apache/tinkerpop/pull/572#discussion_r106646659
--- Diff:
gremlin-core/src/main/java/org/apache/tinkerpop/gremlin/process/traversal/strategy/optimization/PathRetractionStrategy.java
---
@@ -72,7 +73,11 @@ public static PathRetractionStrategy instance() {
public void apply(final Traversal.Admin<?, ?> traversal) {
// do not apply this strategy if there are lambdas as you can't
introspect to know what path information the lambdas are using
// do not apply this strategy if a PATH requirement step is being
used (in the future, we can do PATH requirement lookhead to be more intelligent
about its usage)
- if (TraversalHelper.anyStepRecursively(step -> step instanceof
LambdaHolder || step.getRequirements().contains(TraverserRequirement.PATH),
TraversalHelper.getRootTraversal(traversal)))
+ // do not apply this strategy if a VertexProgramStep is present
with LABELLED_PATH requirements
--- End diff --
Fixed
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---