Inconsistent Behavior with WhereStep with labels
I'm getting some weird behavior when using labels on an anonymous traversal within the WhereStep. Below are some code examples - excuse the fact that they're kind of silly they're just meant to demonstrate the issue
What makes this even more interesting, is that on a more complex traversal with coalesce, the label doesn't seem to cause any problems...
2 Replies
The more complex traversal in question:
I won't time to dig deep into this today, but a bit of a clue can be found in the traversal explanations for the first 2.
As you can see in the code (https://github.com/apache/tinkerpop/blob/86cb67fd34d4278a514553d4a99aa32e880debb9/gremlin-core/src/main/java/org/apache/tinkerpop/gremlin/process/traversal/dsl/graph/GraphTraversal.java#L2125-L2130), the presence of the variable in the where traversal determines if the
where()
step should become a TraversalFilterStep
or a WhereTraversalStep
.GitHub
tinkerpop/gremlin-core/src/main/java/org/apache/tinkerpop/gremlin/p...
Apache TinkerPop - a graph computing framework. Contribute to apache/tinkerpop development by creating an account on GitHub.