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