ignite-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From aealexsandrov <aealexsand...@gmail.com>
Subject Re: LIKE operator on Array column in Apache ignite SQL
Date Fri, 15 Mar 2019 21:05:32 GMT
Hi,

Ignite SQL engine supports only the next types:

https://apacheignite-sql.readme.io/docs/data-types

Also all existed functions you can see here:

https://apacheignite-sql.readme.io/docs/sql-reference-overview

So there is no way to work with arrays as DataTypes even if you set them as
type in QueryEntity.  Possible that you can add some new boolean SQL fields
to the object that contains the array:

public class Market{
    @QuerySqlField(index = true)
    private java.lang.String id;
    @QuerySqlField
    private java.lang.Boolean isContainLacl;
    @QuerySqlField
    private ArrayList<String> array;

select * from market where isContainLacl = true;

You can fill this boolean flag when generating the Market object.

BR,
Andrei



--
Sent from: http://apache-ignite-users.70518.x6.nabble.com/

Mime
View raw message