Execution of query functions.

classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|

Execution of query functions.

Vasiliy Sisko
Hello Igniters.

I try to execute SqlFieldsQuery with following statement:
CALL CSVWRITE('/tmp/test.csv', 'SELECT * FROM WorkedHours')
and receive next exception:
class org.apache.ignite.IgniteException: Unknown query type: CALL
CSVWRITE('/tmp/test.csv', 'SELECT * FROM WorkedHours')

That query worked on GridGain 6.x

Could we support such queries in Ignite?

--
Vasiliy Sisko
GridGain Systems
www.gridgain.com
Reply | Threaded
Open this post in threaded view
|

Re: Execution of query functions.

Alexey Kuznetsov-2
Sergi Vladykin,

I remember that we have same issue with "explain" queries.
I think fix should be pretty simple.

If it is so, let us know and Vasiliy will create issue for it.

On Wed, Jul 29, 2015 at 5:47 PM, Vasiliy Sisko <[hidden email]> wrote:

> Hello Igniters.
>
> I try to execute SqlFieldsQuery with following statement:
> CALL CSVWRITE('/tmp/test.csv', 'SELECT * FROM WorkedHours')
> and receive next exception:
> class org.apache.ignite.IgniteException: Unknown query type: CALL
> CSVWRITE('/tmp/test.csv', 'SELECT * FROM WorkedHours')
>
> That query worked on GridGain 6.x
>
> Could we support such queries in Ignite?
>
> --
> Vasiliy Sisko
> GridGain Systems
> www.gridgain.com
>



--
Alexey Kuznetsov
GridGain Systems
www.gridgain.com
Reply | Threaded
Open this post in threaded view
|

Re: Execution of query functions.

Sergi
I don't think this will work in distributed environment correctly now. If
you want CSV export it must be implemented outside of SQL layer.

Sergi

2015-07-29 14:13 GMT+03:00 Alexey Kuznetsov <[hidden email]>:

> Sergi Vladykin,
>
> I remember that we have same issue with "explain" queries.
> I think fix should be pretty simple.
>
> If it is so, let us know and Vasiliy will create issue for it.
>
> On Wed, Jul 29, 2015 at 5:47 PM, Vasiliy Sisko <[hidden email]>
> wrote:
>
> > Hello Igniters.
> >
> > I try to execute SqlFieldsQuery with following statement:
> > CALL CSVWRITE('/tmp/test.csv', 'SELECT * FROM WorkedHours')
> > and receive next exception:
> > class org.apache.ignite.IgniteException: Unknown query type: CALL
> > CSVWRITE('/tmp/test.csv', 'SELECT * FROM WorkedHours')
> >
> > That query worked on GridGain 6.x
> >
> > Could we support such queries in Ignite?
> >
> > --
> > Vasiliy Sisko
> > GridGain Systems
> > www.gridgain.com
> >
>
>
>
> --
> Alexey Kuznetsov
> GridGain Systems
> www.gridgain.com
>
Reply | Threaded
Open this post in threaded view
|

Re: Execution of query functions.

Atri Sharma
How exactly is the per node result set merged into a single CSV file for
this? Would that need some file locks/synchronization?

On Wed, Jul 29, 2015 at 8:45 PM, Sergi Vladykin <[hidden email]>
wrote:

> I don't think this will work in distributed environment correctly now. If
> you want CSV export it must be implemented outside of SQL layer.
>
> Sergi
>
> 2015-07-29 14:13 GMT+03:00 Alexey Kuznetsov <[hidden email]>:
>
> > Sergi Vladykin,
> >
> > I remember that we have same issue with "explain" queries.
> > I think fix should be pretty simple.
> >
> > If it is so, let us know and Vasiliy will create issue for it.
> >
> > On Wed, Jul 29, 2015 at 5:47 PM, Vasiliy Sisko <[hidden email]>
> > wrote:
> >
> > > Hello Igniters.
> > >
> > > I try to execute SqlFieldsQuery with following statement:
> > > CALL CSVWRITE('/tmp/test.csv', 'SELECT * FROM WorkedHours')
> > > and receive next exception:
> > > class org.apache.ignite.IgniteException: Unknown query type: CALL
> > > CSVWRITE('/tmp/test.csv', 'SELECT * FROM WorkedHours')
> > >
> > > That query worked on GridGain 6.x
> > >
> > > Could we support such queries in Ignite?
> > >
> > > --
> > > Vasiliy Sisko
> > > GridGain Systems
> > > www.gridgain.com
> > >
> >
> >
> >
> > --
> > Alexey Kuznetsov
> > GridGain Systems
> > www.gridgain.com
> >
>



--
Regards,

Atri
*l'apprenant*
Reply | Threaded
Open this post in threaded view
|

Re: Execution of query functions.

dsetrakyan
In reply to this post by Sergi
On Wed, Jul 29, 2015 at 8:15 AM, Sergi Vladykin <[hidden email]>
wrote:

> I don't think this will work in distributed environment correctly now. If
> you want CSV export it must be implemented outside of SQL layer.
>

Would it be possible to add a CSVWRITE command to Visor to enable saving
results to a CSV file? This would be a good newbie ticket in my view.

Thoughts?


>
> Sergi
>
> 2015-07-29 14:13 GMT+03:00 Alexey Kuznetsov <[hidden email]>:
>
> > Sergi Vladykin,
> >
> > I remember that we have same issue with "explain" queries.
> > I think fix should be pretty simple.
> >
> > If it is so, let us know and Vasiliy will create issue for it.
> >
> > On Wed, Jul 29, 2015 at 5:47 PM, Vasiliy Sisko <[hidden email]>
> > wrote:
> >
> > > Hello Igniters.
> > >
> > > I try to execute SqlFieldsQuery with following statement:
> > > CALL CSVWRITE('/tmp/test.csv', 'SELECT * FROM WorkedHours')
> > > and receive next exception:
> > > class org.apache.ignite.IgniteException: Unknown query type: CALL
> > > CSVWRITE('/tmp/test.csv', 'SELECT * FROM WorkedHours')
> > >
> > > That query worked on GridGain 6.x
> > >
> > > Could we support such queries in Ignite?
> > >
> > > --
> > > Vasiliy Sisko
> > > GridGain Systems
> > > www.gridgain.com
> > >
> >
> >
> >
> > --
> > Alexey Kuznetsov
> > GridGain Systems
> > www.gridgain.com
> >
>