[ https://issues.apache.org/jira/browse/TINKERPOP-2920?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17733492#comment-17733492 ]
ASF GitHub Bot commented on TINKERPOP-2920: ------------------------------------------- spmallette opened a new pull request, #2100: URL: https://github.com/apache/tinkerpop/pull/2100 https://issues.apache.org/jira/browse/TINKERPOP-2920 `ProductiveByStrategy` was interacting badly with `SubgraphStrategy` and altering a child traversal in `PropertyMapStep` that it probably shouldn't have been. VOTE +1 > SubgraphStrategy failure when property key not present on vertex in by() > ------------------------------------------------------------------------ > > Key: TINKERPOP-2920 > URL: https://issues.apache.org/jira/browse/TINKERPOP-2920 > Project: TinkerPop > Issue Type: Bug > Components: process > Affects Versions: 3.5.5 > Reporter: Stephen Mallette > Priority: Minor > > The following triggers the failure assuming "example" isn't present on a > vertex: > {code} > g.withStrategies(new SubgraphStrategy(vertexProperties: constant(true))). > V().project("example").by("example") > {code} > Note that {{values('example")}} will work on 3.6.2, but not 3.5.5 which > probably has something to do with differences in {{by()}} handling and > {{ProductiveByStrategy}}. > {code} > gremlin> g.withStrategies(new SubgraphStrategy(vertexProperties: > constant(true))). > ......1> withoutStrategies(ProductiveByStrategy). > ......2> V().project("example").by(values("example")) > The provided traverser does not map to a value: > v[1][TinkerVertex]->[PropertiesStep([example],property), > OrStep([[ClassFilterStep(VertexProperty)], > [TraversalFilterStep([ConstantStep(true)])]]), > PropertyValueStep][DefaultGraphTraversal] parent[[TinkerGraphStep(vertex,[]), > ProjectStep([example],[[PropertiesStep([example],property), > OrStep([[ClassFilterStep(VertexProperty)], > [TraversalFilterStep([ConstantStep(true)])]]), PropertyValueStep]])]] > Type ':help' or ':h' for help. > Display stack trace? [yN] > ......1> V().project("example").by("example") > The provided traverser does not map to a value: > v[1][TinkerVertex]->[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)])]] > Type ':help' or ':h' for help. > Display stack trace? [yN] > {code} -- This message was sent by Atlassian Jira (v8.20.10#820010)