Return-Path: Delivered-To: apmail-hadoop-hive-dev-archive@minotaur.apache.org Received: (qmail 45463 invoked from network); 23 May 2009 00:52:55 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 23 May 2009 00:52:55 -0000 Received: (qmail 84621 invoked by uid 500); 23 May 2009 00:53:08 -0000 Delivered-To: apmail-hadoop-hive-dev-archive@hadoop.apache.org Received: (qmail 84559 invoked by uid 500); 23 May 2009 00:53:07 -0000 Mailing-List: contact hive-dev-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: hive-dev@hadoop.apache.org Delivered-To: mailing list hive-dev@hadoop.apache.org Received: (qmail 84549 invoked by uid 99); 23 May 2009 00:53:07 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 23 May 2009 00:53:07 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 23 May 2009 00:53:05 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 8AED829A0011 for ; Fri, 22 May 2009 17:52:45 -0700 (PDT) Message-ID: <1277183933.1243039965554.JavaMail.jira@brutus> Date: Fri, 22 May 2009 17:52:45 -0700 (PDT) From: "Zheng Shao (JIRA)" To: hive-dev@hadoop.apache.org Subject: [jira] Commented: (HIVE-511) Change the hashcode for DoubleWritable In-Reply-To: <2054835929.1243037565542.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/HIVE-511?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12712329#action_12712329 ] Zheng Shao commented on HIVE-511: --------------------------------- Text and String are both "STRING" primitive type. The relationship between Text and String are the same as that between IntWritable and Integer - they will have WritableStringOI and JavaStringOI, which both implements StringOI. > Change the hashcode for DoubleWritable > -------------------------------------- > > Key: HIVE-511 > URL: https://issues.apache.org/jira/browse/HIVE-511 > Project: Hadoop Hive > Issue Type: Bug > Reporter: Zheng Shao > Attachments: HIVE-511.1.patch > > > The current DoubleWritable hashCode takes only the last 32 bits. This is a big problem because for small integer values like 1.0, 2.0, 15.0, the hashCode are all 0. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.