Return-Path: X-Original-To: apmail-hive-dev-archive@www.apache.org Delivered-To: apmail-hive-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id E1CC8F4B1 for ; Tue, 2 Apr 2013 21:35:16 +0000 (UTC) Received: (qmail 84883 invoked by uid 500); 2 Apr 2013 21:35:16 -0000 Delivered-To: apmail-hive-dev-archive@hive.apache.org Received: (qmail 84816 invoked by uid 500); 2 Apr 2013 21:35:16 -0000 Mailing-List: contact dev-help@hive.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@hive.apache.org Delivered-To: mailing list dev@hive.apache.org Received: (qmail 84807 invoked by uid 500); 2 Apr 2013 21:35:16 -0000 Delivered-To: apmail-hadoop-hive-dev@hadoop.apache.org Received: (qmail 84804 invoked by uid 99); 2 Apr 2013 21:35:16 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 02 Apr 2013 21:35:16 +0000 Date: Tue, 2 Apr 2013 21:35:16 +0000 (UTC) From: "Ashutosh Chauhan (JIRA)" To: hive-dev@hadoop.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (HIVE-4269) fix handling of binary type in hiveserver2, jdbc driver MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/HIVE-4269?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13620295#comment-13620295 ] Ashutosh Chauhan commented on HIVE-4269: ---------------------------------------- I tried it on clean checkout again and test passed, so I will treat it as a transient. Running tests again. Will commit if tests pass. > 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