Hi,

The reason for deprecation is that SqlQuery is a limited subset of
SqlFieldsQuery, which may be confusing.
https://issues.apache.org/jira/browse/IGNITE-11334

On Mon, Jan 17, 2022 at 2:59 PM Surinder Mehra <redni...@gmail.com> wrote:

> I found the link how to read full object. But would still like to
> understand why SqlQuery is deprecated.
>
>
> https://stackoverflow.com/questions/66248464/how-to-get-ignite-cache-sql-query-to-return-value-object
>
>
> On Mon, Jan 17, 2022 at 4:54 PM Surinder Mehra <redni...@gmail.com> wrote:
>
>> Hi,
>> With Ignite 2.9 or before Ignite supported SqlQuery but in 2.11 I see it
>> is deprecated. Could you please tell us why and what is the alternative to
>> it. SqlFieldQuery does not allow to read full object like below but
>> individual fields which is cumbersome
>>
>> String sql1 = "select * from Person";
>> cache.query(new SqlQuery<LocalDateTime, Person>(Person.class, sql1))
>>         .getAll()
>>         .forEach(e ->System.out.println("Value: "+ e.getValue()));
>>
>>
>>

Reply via email to