How can I use index with Object type?
My model have one index field
public class Model implements Serializable {
......
.....
@QuerySqlField(index = true)
private Object sortField;
}
Following command works properly-
cache.query(new SqlQuery<>(Model.class, "ORDER BY sortField")).getAll();
But when I want to do some filtering, for example:
cache.query(new SqlQuery<>(Model.class, "sortField= ?").setArgs(10)).getAll();
It brings following CacheException: Failed to run map query remotely
When I change Object to Integer everything works properly.
But I don't understand why ORDER BY works but WHERE doe not with an Object field.
For more information you can see: http://apache-ignite-users.70518.x6.nabble.com/Cache-queries-Failed-to-run-map-query-remotely-td18378.html