[
https://issues.apache.org/jira/browse/TINKERPOP3-797?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
stephen mallette closed TINKERPOP3-797.
---------------------------------------
Resolution: Fixed
Fix Version/s: 3.1.0-incubating
Added 3.1.0-incubating as a fix version as this change was merged to master.
Also added the "breaking" label as a test was added to the test-suite.
> order() seems to only like List?
> --------------------------------
>
> Key: TINKERPOP3-797
> URL: https://issues.apache.org/jira/browse/TINKERPOP3-797
> Project: TinkerPop 3
> Issue Type: Improvement
> Components: process
> Affects Versions: 3.0.0-incubating
> Reporter: Marko A. Rodriguez
> Assignee: Marko A. Rodriguez
> Labels: breaking
> Fix For: 3.0.1-incubating, 3.1.0-incubating
>
>
> {code}
> g.V().hasLabel('movie').
> group().
> by(values('year').map {(it.get() - 1900).toString()[-2..-2] + "0"}).
> by().
> by(order(local).by(inE('rated').values('stars'),decr).
> limit(1).values('name')).next()
> org.apache.tinkerpop.gremlin.process.traversal.step.util.BulkSet cannot be
> cast to java.util.List
> Display stack trace? [yN]
> {code}
> I have to do it like this:
> {code}
> g.V().hasLabel('movie').
> group().
> by(values('year').map {(it.get() - 1900).toString()[-2..-2] + "0"}).
> by().
> by(unfold().order().by(inE('rated').values('stars'),decr).
> limit(1).values('name')).next()
> org.apache.tinkerpop.gremlin.process.traversal.step.util.BulkSet cannot be
> cast to java.util.List
> Display stack trace? [yN]
> {code}
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)