Stephen Mallette created TINKERPOP-3178:
-------------------------------------------
Summary: Match only a single case in choose()
Key: TINKERPOP-3178
URL: https://issues.apache.org/jira/browse/TINKERPOP-3178
Project: TinkerPop
Issue Type: Improvement
Components: process
Affects Versions: 3.7.3
Reporter: Stephen Mallette
{code}
gremlin> g.V().hasLabel('person').choose(values('age')).option(27,
constant('x')).option(27, constant('y')).option(none, constant('z'))
==>z
==>x
==>y
==>z
==>z
{code}
There should be only 4 results above, one for each person, but {{choose}} is
matching twice on 27. {{choose}} should match the first item it finds only and
no fall through.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)