Hi, To allow fields to be used in queries you should mark them wither with @QuerySqlField annotation or configure QueryEntity in cache configuration. Sorting by collections is not supported.
On Wed, Jun 28, 2017 at 12:06 PM, begineer <redni...@gmail.com> wrote: > hey Guys, > I have a question about Ignite Sql Queries. Let say my cache looks like > below sample code. If I add orderBy clause on subjectMarksList, how will it > sort it. Compare values in list by index or how. I coudn't find anything in > docs. > > > Cache<Long, Student> > > class Student{ > int id; > String name; > List<Double> subjectMarksList; > .... > @Override > public boolean equals(Object o) { > if (this == o) > return true; > if (o == null || getClass() != o.getClass()) > return false; > Student that = (Student) o; > Objects.equals(id, that.id) && > Objects.equals(name, that.name) && > Objects.equals(subjectMarksList, that.subjectMarksList); > > .... hashcode().... > > } > > > > > > > -- > View this message in context: http://apache-ignite-users. > 70518.x6.nabble.com/Ignite-SQL-Queries-on-Lists-fields- > sorting-tp14129.html > Sent from the Apache Ignite Users mailing list archive at Nabble.com. > -- Best regards, Andrey V. Mashenkov