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

Jaideep Dhok commented on HIVE-4569:
------------------------------------

@Carl: This change will not affect JDBC/ODBC clients. Currently clients using 
Thrift have no way to get query plan, which is why we wanted to add this.

Here are the changes proposed:


# Add GetQueryPlan with arguments same as ExecuteStatement -
   {code}TGetQueryPlanResp GetQueryPlan(1:TExecuteStatementReq req);{code}
# Run a SQLOperation for the request, calling Driver.compile with the statement 
and return the plan object. Throw HiveSQLException with return code of compile 
if it fails.
# New response type for the above call -
{code}
struct TGetQueryPlanResp {
        1: required TStatus status
        // Queryplan
        2: required queryplan.Query plan
}
{code}


We'll have to include queryplan.thrift in TCLIService.thrift for the return type


                
> GetQueryPlan api in Hive Server2
> --------------------------------
>
>                 Key: HIVE-4569
>                 URL: https://issues.apache.org/jira/browse/HIVE-4569
>             Project: Hive
>          Issue Type: Bug
>          Components: HiveServer2
>            Reporter: Amareshwari Sriramadasu
>            Assignee: Jaideep Dhok
>         Attachments: git-4569.patch
>
>
> It would nice to have GetQueryPlan as thrift api. I do not see GetQueryPlan 
> api available in HiveServer2, though the wiki 
> https://cwiki.apache.org/confluence/display/Hive/HiveServer2+Thrift+API 
> contains, not sure why it was not added.

--
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

Reply via email to