You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ignite.apache.org by prashant <pr...@gmail.com> on 2019/01/08 01:37:18 UTC

Re: [jira] [Created] (IGNITE-9048) Local SqlFieldsQuery on client leads to exception

Hi Guys,

I am also running into same issue where I am doing local query

            SqlFieldsQuery query = new SqlFieldsQuery(sql);
            query.setLocal(true);
            FieldsQueryCursor<List&lt;?>> fq = cache.query(query);


This leads to same exception stack trace. 

Is there any workaround where I would like query to be only issued against
the rows that are cached locally on the query node.

Thank you very much
Prashant Patel



--
Sent from: http://apache-ignite-developers.2346864.n4.nabble.com/

Re: [jira] [Created] (IGNITE-9048) Local SqlFieldsQuery on client leads to exception

Posted by Vyacheslav Daradur <da...@gmail.com>.
Hi, which Ignite's version do you use?

*Local* queries are prohibited on client nodes since they do not store data.

The check was added within task [1] and included in Ignite 2.7 release.

[1] https://issues.apache.org/jira/browse/IGNITE-8915

On Tue, Jan 8, 2019 at 10:17 PM prashant <pr...@gmail.com> wrote:
>
> Hi Guys,
>
> I am also running into same issue where I am doing local query
>
>             SqlFieldsQuery query = new SqlFieldsQuery(sql);
>             query.setLocal(true);
>             FieldsQueryCursor<List&lt;?>> fq = cache.query(query);
>
>
> This leads to same exception stack trace.
>
> Is there any workaround where I would like query to be only issued against
> the rows that are cached locally on the query node.
>
> Thank you very much
> Prashant Patel
>
>
>
> --
> Sent from: http://apache-ignite-developers.2346864.n4.nabble.com/



-- 
Best Regards, Vyacheslav D.