hive-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From " (JIRA)" <>
Subject [jira] [Commented] (HIVE-2398) Hive server doesn't return schema for 'set' command
Date Wed, 14 Sep 2011 19:42:10 GMT

] commented on HIVE-2398:

This is an automatically generated e-mail. To reply, visit:

(Updated 2011-09-14 19:41:13.647029)

Review request for hive and Carl Steinbach.


Added check for resultset non empty. 
The full "set -v" output would be too long, also most of the rows will different in each test
setup. Hence I am suggesting not to do that. Let me know if you disagree.


The Hive server currently has the framework to process the Cli commands like 'set'. But it
returns an empty schema definition for these resultsets. The patch here is to add a getSchema()
to the CommandResponse interface. The SetProcessor is modified to build a schema object which
is returned with getSchema.
HiveServer is modified to call the getSchema for command cases as well.

This addresses bug HIVE-2398.

Diffs (updated)

  jdbc/src/test/org/apache/hadoop/hive/jdbc/ e744d11 
  ql/src/java/org/apache/hadoop/hive/ql/processors/ 4f7f472 
  ql/src/java/org/apache/hadoop/hive/ql/processors/ 9ca5ca4 
  service/src/java/org/apache/hadoop/hive/service/ 95f322a 



Tested with ODBC program to execute the set command. Ran Hive unit tests.



> Hive server doesn't return schema for 'set' command
> ---------------------------------------------------
>                 Key: HIVE-2398
>                 URL:
>             Project: Hive
>          Issue Type: Bug
>          Components: Server Infrastructure
>    Affects Versions: 0.7.1, 0.8.0
>            Reporter: Prasad Mujumdar
>            Assignee: Prasad Mujumdar
>         Attachments: HIVE-2398.patch, HIVE-2398.patch
> The Hive server does process the CLI commands like 'set', 'set -v' sent by ODBC or JDBC
clients. But currently only the data is returned to client but not schema for that resultset.
This makes it unusable for a ODBC or JDBC client to use this option.

This message is automatically generated by JIRA.
For more information on JIRA, see:


View raw message