See inline.

> On Jul 16, 2015, at 4:03 AM, Preetham Nadig <[email protected]> 
> wrote:
> 
> Hello,
> I am planning to use DRILL for one of my projects and I have been working 
> with it for couple of weeks

That’s awesome!

> One of the things I would like to do is access DRILL over a REST API, I have 
> successfully queried over a web client.
> But is it possible to send a more than one query in a a rest call or a user 
> defined function kind of functionality?

It’s one query per REST call. Here’s the REST API reference: 
https://docs.google.com/document/d/1mRsuWk4Dpt6ts-jQ6ke3bB30PIwanRiCPfGxRwZEQME/edit
 
<https://docs.google.com/document/d/1mRsuWk4Dpt6ts-jQ6ke3bB30PIwanRiCPfGxRwZEQME/edit>

You should be able to reference a UDF from you query over REST API. Reference 
to writing custom UDFs: 
http://drill.apache.org/docs/develop-custom-functions-introduction/ 
<http://drill.apache.org/docs/develop-custom-functions-introduction/>
> If not what alternate options exist to use drill programmatically so that it 
> acts as the interface between data source and a end user application?

You can use the Drill JDBC and OBDC drivers. Here’s a simple example using 
ODBC: https://www.mapr.com/blog/using-drill-programmatically-python-r-and-perl 
<https://www.mapr.com/blog/using-drill-programmatically-python-r-and-perl>

> 
> Thanks,
> Regards,
> Preetham

Thank you,
Sudheesh
  • Rest API Preetham Nadig
    • Re: Rest API Sudheesh Katkam

Reply via email to