Subgraph Strategy with vertexProperties + project().by("field name") = crash

Running the following query: g.withStrategies(new SubgraphStrategy(vertexProperties: constant(true))).V().project("example").by("example") Results in a crash with obscure error:
org.apache.tinkerpop.gremlin.driver.exception.ResponseException: The provided traverser does not map to a value: v[122908680][CacheVertex]->[PropertiesStep([example],property), TraversalFilterStep([ConstantStep(true)]), OrStep([[ClassFilterStep(VertexProperty)], [TraversalFilterStep([ConstantStep(true)])]]), PropertyValueStep][DefaultTraversal] parent[[CoalesceStep([value([PropertiesStep([example],property), TraversalFilterStep([ConstantStep(true)]), OrStep([[ClassFilterStep(VertexProperty)], [TraversalFilterStep([ConstantStep(true)])]]), PropertyValueStep]), (null)])]]
org.apache.tinkerpop.gremlin.driver.exception.ResponseException: The provided traverser does not map to a value: v[122908680][CacheVertex]->[PropertiesStep([example],property), TraversalFilterStep([ConstantStep(true)]), OrStep([[ClassFilterStep(VertexProperty)], [TraversalFilterStep([ConstantStep(true)])]]), PropertyValueStep][DefaultTraversal] parent[[CoalesceStep([value([PropertiesStep([example],property), TraversalFilterStep([ConstantStep(true)]), OrStep([[ClassFilterStep(VertexProperty)], [TraversalFilterStep([ConstantStep(true)])]]), PropertyValueStep]), (null)])]]
At the same time, running it with by(values("example")) finishes just fine. Why?
4 Replies
spmallette
spmallette2y ago
I think you've uncovered a bug of some sort. At least you have some sort of workaround. You may track this issue here: https://issues.apache.org/jira/browse/TINKERPOP-2920
Gardanta Spirito
Gardanta SpiritoOP2y ago
So, you've checked it yourself and it didn't work for you either?
spmallette
spmallette2y ago
yep - bug
Gardanta Spirito
Gardanta SpiritoOP2y ago
Oh. Thank you very much.
Want results from more Discord servers?
Add your server