You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hive.apache.org by "Bill Graham (JIRA)" <ji...@apache.org> on 2009/10/02 01:21:23 UTC
[jira] Assigned: (HIVE-862) CommandProcessor should return
DriverResponse
[ https://issues.apache.org/jira/browse/HIVE-862?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Bill Graham reassigned HIVE-862:
--------------------------------
Assignee: Bill Graham
> 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
>
> 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.