[
https://issues.apache.org/jira/browse/TINKERPOP-1620?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Stephen Mallette closed TINKERPOP-1620.
---------------------------------------
Resolution: Cannot Reproduce
This seems to have been fixed somewhere along the line - works as early as
3.4.9 but I imagine fixed earlier than that.
> Choose with count branch traversal type coercion
> ------------------------------------------------
>
> Key: TINKERPOP-1620
> URL: https://issues.apache.org/jira/browse/TINKERPOP-1620
> Project: TinkerPop
> Issue Type: Improvement
> Components: process
> Affects Versions: 3.2.3
> Reporter: Ted Wilmes
> Assignee: Ted Wilmes
> Priority: Major
>
> A {{ChooseStep}} with a {{count}} branching traversal is currently sensitive
> to whether or not the {{option}} keys are {{long}} or {{int}}. This results
> in the following behavior:
> {code}
> gremlin> g = TinkerFactory.createModern().traversal()
> ==>graphtraversalsource[tinkergraph[vertices:6 edges:6], standard]
> gremlin> g.V().choose(bothE().count()).option(1, constant(1)).option(3,
> constant(3))
> gremlin> g.V().choose(bothE().count()).option(1l, constant(1)).option(3l,
> constant(3))
> ==>3
> ==>1
> ==>3
> ==>3
> ==>1
> ==>1
> {code}
> The branch traversal results if, numeric, should be evaluated against the
> options using {{NumberHelper}} so as to be consistent with other steps.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)