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
spmallette14mo 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_spirito14mo ago
So, you've checked it yourself and it didn't work for you either?
spmallette
spmallette14mo ago
yep - bug
gardanta_spirito
gardanta_spirito14mo ago
Oh. Thank you very much.
Want results from more Discord servers?
Add your server
More Posts
Custom MutationListener on TransactionHello everyone, I'm a beginner regarding tinkerpop and i'm trying to fire my custom listener after Gremlin Query to give all related items in versioned graphI am working on a requirement where I need to store all version of a record in a Graph Database say Order group count result alphabeticallyHi! Given the following query and results in the enclosed image: how would I sort the labels alphabTransactions - tx.commit vs tx.closeI have a question related to transactions. I'm having issues with tx.commit() hanging locally when rExtracting the ProjectStep of a GraphTraversal instance during unit testing**Tl;dr** Given an instance of `GraphTraversal<?, Map<String, Object>>`, is it possible to extract tWhen can we get a non-RC release for Python 3.11 support in Production Envs?There was a bug where the version of aiohttp was too strict and blocked Python 3.11 support. ( httpsSubgraph query returns String instead of TinkerGraph Object in Fluent Java APIHi guys. I am running the following query in the console and it works fine: `g.V().has('user', 'id'Multiple Graphs in Gremlin Server?How do I manage multiple graphs? Is there an option where I can select which graph to use for query Has anyone else encountered "NoSuchElementException" when calling getLeafTrees() on a tree objectDid a little bit of debugging and it seems that the issue has to do with a cast to Tree before calliThe query gets slower as the number of vertices that already exist in JanusGraph gets bigger and bigWhen i start JanusGraph and perform any query like : - g.V().has(properties).limit(10).toList() - g.