[
https://issues.apache.org/jira/browse/HIVE-2398?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13104738#comment-13104738
]
[email protected] commented on HIVE-2398:
-----------------------------------------------------
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/1605/#review1895
-----------------------------------------------------------
jdbc/src/test/org/apache/hadoop/hive/jdbc/TestJdbcDriver.java
<https://reviews.apache.org/r/1605/#comment4376>
Need to assert that the size of the resultset is > 0. Might also be good to
log the contents of the resultset.
- Carl
On 2011-09-13 20:03:48, Prasad Mujumdar wrote:
bq.
bq. -----------------------------------------------------------
bq. This is an automatically generated e-mail. To reply, visit:
bq. https://reviews.apache.org/r/1605/
bq. -----------------------------------------------------------
bq.
bq. (Updated 2011-09-13 20:03:48)
bq.
bq.
bq. Review request for hive and Carl Steinbach.
bq.
bq.
bq. Summary
bq. -------
bq.
bq. 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.
bq. HiveServer is modified to call the getSchema for command cases as well.
bq.
bq.
bq. This addresses bug HIVE-2398.
bq. https://issues.apache.org/jira/browse/HIVE-2398
bq.
bq.
bq. Diffs
bq. -----
bq.
bq. jdbc/src/test/org/apache/hadoop/hive/jdbc/TestJdbcDriver.java e744d11
bq.
ql/src/java/org/apache/hadoop/hive/ql/processors/CommandProcessorResponse.java
4f7f472
bq. ql/src/java/org/apache/hadoop/hive/ql/processors/SetProcessor.java
9ca5ca4
bq. service/src/java/org/apache/hadoop/hive/service/HiveServer.java 95f322a
bq.
bq. Diff: https://reviews.apache.org/r/1605/diff
bq.
bq.
bq. Testing
bq. -------
bq.
bq. Tested with ODBC program to execute the set command. Ran Hive unit tests.
bq.
bq.
bq. Thanks,
bq.
bq. Prasad
bq.
bq.
> Hive server doesn't return schema for 'set' command
> ---------------------------------------------------
>
> Key: HIVE-2398
> URL: https://issues.apache.org/jira/browse/HIVE-2398
> 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: http://www.atlassian.com/software/jira