[
https://issues.apache.org/jira/browse/TINKERPOP-2920?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Stephen Mallette closed TINKERPOP-2920.
---------------------------------------
Fix Version/s: 3.7.0
3.5.7
3.6.5
Assignee: Stephen Mallette
Resolution: Fixed
> 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
> Assignee: Stephen Mallette
> Priority: Minor
> Fix For: 3.7.0, 3.5.7, 3.6.5
>
>
> 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)