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 2B8CB965A for ; Thu, 19 Jul 2012 17:14:36 +0000 (UTC) Received: (qmail 47187 invoked by uid 500); 19 Jul 2012 17:14:35 -0000 Delivered-To: apmail-hive-dev-archive@hive.apache.org Received: (qmail 46984 invoked by uid 500); 19 Jul 2012 17:14:35 -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 46926 invoked by uid 500); 19 Jul 2012 17:14:35 -0000 Delivered-To: apmail-hadoop-hive-dev@hadoop.apache.org Received: (qmail 46918 invoked by uid 99); 19 Jul 2012 17:14:35 -0000 Received: from issues-vm.apache.org (HELO issues-vm) (140.211.11.160) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 19 Jul 2012 17:14:35 +0000 Received: from isssues-vm.apache.org (localhost [127.0.0.1]) by issues-vm (Postfix) with ESMTP id 2FE3A142863 for ; Thu, 19 Jul 2012 17:14:35 +0000 (UTC) Date: Thu, 19 Jul 2012 17:14:35 +0000 (UTC) From: "Ashutosh Chauhan (JIRA)" To: hive-dev@hadoop.apache.org Message-ID: <1869878856.76575.1342718075198.JavaMail.jiratomcat@issues-vm> In-Reply-To: <964728206.25372.1341869554419.JavaMail.jiratomcat@issues-vm> Subject: [jira] [Updated] (HIVE-3246) java primitive type for binary datatype should be byte[] 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-3246?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Ashutosh Chauhan updated HIVE-3246: ----------------------------------- Resolution: Fixed Fix Version/s: 0.10.0 Release Note: This fix changes the internal representation of binary type within Hive. UDFs which were using binary type and making use of the fact that java representation of binary data in Hive is ByteArrayRef needs to be updated to reflect that now that representation is byte[] instead. Also note that this doesn't change the format for on-disk data. (was: Makes the java primitive type for binary datatype - byte[] ) Hadoop Flags: Incompatible change Status: Resolved (was: Patch Available) Committed to trunk. Thanks, Thejas! > java primitive type for binary datatype should be byte[] > -------------------------------------------------------- > > Key: HIVE-3246 > URL: https://issues.apache.org/jira/browse/HIVE-3246 > Project: Hive > Issue Type: Bug > Affects Versions: 0.9.0 > Reporter: Thejas M Nair > Assignee: Thejas M Nair > Fix For: 0.10.0 > > Attachments: HIVE-3246.1.patch, HIVE-3246.2.patch > > > PrimitiveObjectInspector.getPrimitiveJavaObject is supposed to return a java object. But in case of binary datatype, it returns ByteArrayRef (not java standard type). The suitable java object for it would be byte[]. -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa For more information on JIRA, see: http://www.atlassian.com/software/jira