[
https://issues.apache.org/jira/browse/HIVE-862?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Bill Graham updated HIVE-862:
-----------------------------
Attachment: HIVE-862.1.patch
Attaching HIVE-862.1.patch. Edward, please take a look and let me know what you
think. If it looks good and seems to meet your needs I'll submit it.
> CommandProcessor should return DriverResponse
> ---------------------------------------------
>
> Key: HIVE-862
> URL: https://issues.apache.org/jira/browse/HIVE-862
> Project: Hadoop Hive
> Issue Type: New Feature
> Components: Query Processor
> Reporter: Edward Capriolo
> Assignee: Bill Graham
> Attachments: HIVE-862.1.patch
>
>
> Since Driver now returns DriverResponse CommandProcessor should return a
> similar object.
> {noformat}
> For reference here is how i want to use this:
> Currently:
> HWISessionItem.java
> private List<Integer> queryRet;
> private List<String> queries;
> public void runQuery() {
> //for each query in queries
> if (instanceof driver) {
> //other stuff here
> queryRet.add( qp.run(cmd) );
> } else {
> queryRet.add(proc.run(cmd_1) );
> }
> }
> So I would like to refactor and use DriverResponse.
> private List<DriverResponse> queryRet;
> private List<String> queries;
> public void runQuery() {
> //for each query in queries
>
> if (instanceof driver) {
> //other stuff here
> queryRet.add( qp.run(cmd) ); //<--- this is fine
> } else {
> queryRet.add(proc.run(cmd_1) ); <--this returns an int.
> }
> }
> {noformat}
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.