You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@drill.apache.org by Devender Yadav <de...@gmail.com> on 2016/04/18 07:08:30 UTC
Drill REST API
Hi All,
I am exploring Drill's REST API.
To query, one needs to make POST request to
http://localhost:8047/query.json
with request body:
{
"queryType" : "SQL",
"query" : "<Drill Query>"
}
Response Body:
{
"columns" : [ ...],
"rows" : [ {...},...]
}
There is no query Id in the response body. Is there any specific reason in
not exposing query Id?
To track profile of query, one needs query Id.
To get all running queries by making a GET request to
http://localhost:8047/profiles.json & then fetching query Id is lengthy
process.
Regards,
Devender Yadav
Software Developer
Impetus Infotech Pvt Ltd