[
https://issues.apache.org/jira/browse/DRILL-164?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13736685#comment-13736685
]
Lisen Mu commented on DRILL-164:
--------------------------------
It sounds like a Future<List<QueryResultBatch>> ?
I'm about to post a small patch in DrillClient to add timeout parameter to
runQuery(). I guess I should just post here rather than another issue, to
include what you required.
> Changes to DrillClient
> ----------------------
>
> Key: DRILL-164
> URL: https://issues.apache.org/jira/browse/DRILL-164
> Project: Apache Drill
> Issue Type: Improvement
> Reporter: Srihari Srinivasan
>
> With respect to the DrillClient we'll need the following methods in order to
> support an async style interaction.
> - new DrillClient().submitQuery(QueryType, Query String) that returns
> the *QueryId* *and continues to execute in the background*
> - new DrillClient().getStatus(queryId) that returns a Status object. It
> could just return *IN_PROGRESS, SUCCEEDED and FAILED* for now. And some
> way to know why it failed in case it did.
> - new DrillClient().getResults(queryId) that returns *QueryResultBatch* as it
> is doing now.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira