[ 
https://issues.apache.org/jira/browse/HIVE-8568?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14217030#comment-14217030
 ] 

Thejas M Nair commented on HIVE-8568:
-------------------------------------

I think the reasons cited by [~vgumashta] to add this functionality in 
GetOperationStatus are very relevant.
1. In most use cases, you would be interested in state of the query as well. 
You don't want to continue polling if the query has finished.
2. Getting the status information is cheap.
3. The long polling mechanism is very useful for calls like this. You would 
need to keep polling to find new jobids as they become available. Long polling 
lets you find it very quickly, as you don't have to sleep between calls to 
server.

However, in the TGetOperationStatusResp above, I don't think we need a 'bool 
hasJobIds' . The client would know if jobids were requested.



> Add HS2 API to fetch Job IDs for a given query
> ----------------------------------------------
>
>                 Key: HIVE-8568
>                 URL: https://issues.apache.org/jira/browse/HIVE-8568
>             Project: Hive
>          Issue Type: Bug
>            Reporter: Mohit Sabharwal
>            Assignee: Mohit Sabharwal
>         Attachments: HIVE-8568.1.patch, HIVE-8568.patch
>
>
> Fetching Job IDs corresponding to all running MR/Tez tasks is useful for 
> clients like Hue. 



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to