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 F1B1311C16 for ; Tue, 8 Apr 2014 21:26:25 +0000 (UTC) Received: (qmail 7836 invoked by uid 500); 8 Apr 2014 21:26:21 -0000 Delivered-To: apmail-hive-dev-archive@hive.apache.org Received: (qmail 7629 invoked by uid 500); 8 Apr 2014 21:26:17 -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 7586 invoked by uid 500); 8 Apr 2014 21:26:16 -0000 Delivered-To: apmail-hadoop-hive-dev@hadoop.apache.org Received: (qmail 7535 invoked by uid 99); 8 Apr 2014 21:26:15 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 08 Apr 2014 21:26:15 +0000 Date: Tue, 8 Apr 2014 21:26:15 +0000 (UTC) From: "Jitendra Nath Pandey (JIRA)" To: hive-dev@hadoop.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (HIVE-6858) Unit tests decimal_udf.q, vectorization_div0.q fail with jdk-7. 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-6858?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Jitendra Nath Pandey updated HIVE-6858: --------------------------------------- Attachment: HIVE-6858.2.patch Updated patch with the fix to groupby3_map_skew.q as well, as suggested by [~jdere]. Verfied that it passes in both jdk6, jdk7. > Unit tests decimal_udf.q, vectorization_div0.q fail with jdk-7. > --------------------------------------------------------------- > > Key: HIVE-6858 > URL: https://issues.apache.org/jira/browse/HIVE-6858 > Project: Hive > Issue Type: Bug > Reporter: Jitendra Nath Pandey > Assignee: Jitendra Nath Pandey > Attachments: HIVE-6858.1.patch, HIVE-6858.2.patch > > > Unit tests decimal_udf.q, vectorization_div0.q fail with jdk-7. > {noformat} > < -250.0 6583411.236 1.0 6583411.236 -0.004 -0.0048 > --- > > -250.0 6583411.236 1.0 6583411.236 -0.0040 -0.0048 > {noformat} > Following code reproduces this behavior when run in jdk-7 vs jdk-6. Jdk-7 produces -0.004 while, jdk-6 produces -0.0040. > {code} > public class Main { > public static void main(String[] a) throws Exception { > double val = 0.004; > System.out.println("Value = "+val); > } > } > {code} > This happens to be a bug in jdk6, that has been fixed in jdk7. > http://bugs.java.com/bugdatabase/view_bug.do?bug_id=4511638 -- This message was sent by Atlassian JIRA (v6.2#6252)