Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id B883C200B0F for ; Fri, 17 Jun 2016 12:16:06 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id B57A3160A64; Fri, 17 Jun 2016 10:16:06 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 2CD3D160A50 for ; Fri, 17 Jun 2016 12:16:06 +0200 (CEST) Received: (qmail 43997 invoked by uid 500); 17 Jun 2016 10:16:05 -0000 Mailing-List: contact issues-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 issues@hive.apache.org Received: (qmail 43979 invoked by uid 99); 17 Jun 2016 10:16:05 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 17 Jun 2016 10:16:05 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id 3E1962C14F8 for ; Fri, 17 Jun 2016 10:16:05 +0000 (UTC) Date: Fri, 17 Jun 2016 10:16:05 +0000 (UTC) From: "Amruth S (JIRA)" To: issues@hive.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (HIVE-9385) Sum a Double using an ORC table MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Fri, 17 Jun 2016 10:16:06 -0000 [ https://issues.apache.org/jira/browse/HIVE-9385?page=3Dcom.atlassian.= jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=3D15335= 822#comment-15335822 ]=20 Amruth S commented on HIVE-9385: -------------------------------- We are using hive 1.2.1 and facing the same issue. I feel this is related t= o vectorisation. If I disable vectorization, I get the exact sum on a doubl= e column. Is this bug occuring in hive 2.0 also? > Sum a Double using an ORC table > ------------------------------- > > Key: HIVE-9385 > URL: https://issues.apache.org/jira/browse/HIVE-9385 > Project: Hive > Issue Type: Bug > Affects Versions: 0.13.1 > Environment: HDP 2.x, Hive > Reporter: Nick Martin > Priority: Minor > > I=E2=80=99m storing a sales amount column as a double in an ORC table and= when I do: > {code:sql} > select sum(x) from sometable > {code} > I get a value like {{4.79165141174808E9}} > A visual inspection of the column values reveals no glaring anomalies=E2= =80=A6all looks pretty normal.=20 > If I do the same thing in a textfile table I get a perfectly fine aggrega= tion of the double field. -- This message was sent by Atlassian JIRA (v6.3.4#6332)