hive-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Hudson (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (HIVE-4269) fix handling of binary type in hiveserver2, jdbc driver
Date Thu, 04 Apr 2013 23:40:55 GMT

    [ https://issues.apache.org/jira/browse/HIVE-4269?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13623044#comment-13623044
] 

Hudson commented on HIVE-4269:
------------------------------

Integrated in Hive-trunk-hadoop2 #138 (See [https://builds.apache.org/job/Hive-trunk-hadoop2/138/])
    HIVE-4269 : fix handling of binary type in hiveserver2, jdbc driver (Thejas Nair via Ashutosh
Chauhan) (Revision 1464037)

     Result = FAILURE
hashutosh : http://svn.apache.org/viewcvs.cgi/?root=Apache-SVN&view=rev&rev=1464037
Files : 
* /hive/trunk/data/files/datatypes.txt
* /hive/trunk/jdbc/src/java/org/apache/hive/jdbc/HiveBaseResultSet.java
* /hive/trunk/jdbc/src/java/org/apache/hive/jdbc/HiveResultSetMetaData.java
* /hive/trunk/jdbc/src/java/org/apache/hive/jdbc/Utils.java
* /hive/trunk/jdbc/src/test/org/apache/hive/jdbc/TestJdbcDriver2.java
* /hive/trunk/service/src/java/org/apache/hive/service/cli/operation/SQLOperation.java

                
> fix handling of binary type in hiveserver2, jdbc driver
> -------------------------------------------------------
>
>                 Key: HIVE-4269
>                 URL: https://issues.apache.org/jira/browse/HIVE-4269
>             Project: Hive
>          Issue Type: Bug
>          Components: HiveServer2
>            Reporter: Thejas M Nair
>            Assignee: Thejas M Nair
>             Fix For: 0.11.0
>
>         Attachments: HIVE-4269.1.patch
>
>
> Need to use 'new String(byte[])' instead of 'byte[].toString()' when converting to String
for jdbc, in SQLOperation.convertLazyToJava()
> Need to add support for binary in jdbc driver code.
> THe exception that gets thrown while trying to access binary column is like this - 
> {code}
>     [junit] org.apache.hive.service.cli.HiveSQLException: java.lang.ClassCastException:
[B cannot be cast to java.lang.String
>     [junit]     at org.apache.hive.service.cli.operation.SQLOperation.getNextRowSet(SQLOperation.java:188)
>     [junit]     at org.apache.hive.service.cli.operation.OperationManager.getOperationNextRowSet(OperationManager.java:170)
>     [junit]     at org.apache.hive.service.cli.session.HiveSessionImpl.fetchResults(HiveSessionImpl.java:324)
>     [junit]     at org.apache.hive.service.cli.CLIService.fetchResults(CLIService.java:290)
> {code}

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Mime
View raw message