From issues-return-45899-apmail-hive-issues-archive=hive.apache.org@hive.apache.org Thu Jul 7 19:50:11 2016 Return-Path: X-Original-To: apmail-hive-issues-archive@minotaur.apache.org Delivered-To: apmail-hive-issues-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 3A1D919DDC for ; Thu, 7 Jul 2016 19:50:11 +0000 (UTC) Received: (qmail 699 invoked by uid 500); 7 Jul 2016 19:50:11 -0000 Delivered-To: apmail-hive-issues-archive@hive.apache.org Received: (qmail 674 invoked by uid 500); 7 Jul 2016 19:50:11 -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 660 invoked by uid 99); 7 Jul 2016 19:50:11 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 07 Jul 2016 19:50:11 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id EE4E02C027F for ; Thu, 7 Jul 2016 19:50:10 +0000 (UTC) Date: Thu, 7 Jul 2016 19:50:10 +0000 (UTC) From: "Sergey Shelukhin (JIRA)" To: issues@hive.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (HIVE-13945) Decimal value is displayed as rounded when selecting where clause with that decimal value. 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-13945?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Sergey Shelukhin updated HIVE-13945: ------------------------------------ Target Version/s: 2.2.0 (was: 1.3.0, 2.2.0) > Decimal value is displayed as rounded when selecting where clause with that decimal value. > ------------------------------------------------------------------------------------------ > > Key: HIVE-13945 > URL: https://issues.apache.org/jira/browse/HIVE-13945 > Project: Hive > Issue Type: Bug > Affects Versions: 2.1.0 > Reporter: Takahiko Saito > Assignee: Sergey Shelukhin > Priority: Critical > Attachments: HIVE-13945.01.patch, HIVE-13945.02.patch, HIVE-13945.03.patch, HIVE-13945.03.patch, HIVE-13945.04.patch, HIVE-13945.05.patch, HIVE-13945.06.patch, HIVE-13945.patch > > > Create a table withe a column of decimal type(38,18) and insert '4327269606205.029297'. Then select with that value displays its rounded value, which is 4327269606205.029300000000000000 > {noformat} > 0: jdbc:hive2://os-r7-mvjkcu-hiveserver2-11-4> drop table if exists test; > No rows affected (0.229 seconds) > 0: jdbc:hive2://os-r7-mvjkcu-hiveserver2-11-4> > 0: jdbc:hive2://os-r7-mvjkcu-hiveserver2-11-4> create table test (dc decimal(38,18)); > No rows affected (0.125 seconds) > 0: jdbc:hive2://os-r7-mvjkcu-hiveserver2-11-4> > 0: jdbc:hive2://os-r7-mvjkcu-hiveserver2-11-4> insert into table test values (4327269606205.029297); > No rows affected (2.372 seconds) > 0: jdbc:hive2://os-r7-mvjkcu-hiveserver2-11-4> > 0: jdbc:hive2://os-r7-mvjkcu-hiveserver2-11-4> select * from test; > +-----------------------------------+--+ > | test.dc | > +-----------------------------------+--+ > | 4327269606205.029297000000000000 | > +-----------------------------------+--+ > 1 row selected (0.123 seconds) > 0: jdbc:hive2://os-r7-mvjkcu-hiveserver2-11-4> > 0: jdbc:hive2://os-r7-mvjkcu-hiveserver2-11-4> select * from test where dc = 4327269606205.029297000000000000; > +-----------------------------------+--+ > | test.dc | > +-----------------------------------+--+ > | 4327269606205.029300000000000000 | > +-----------------------------------+--+ > 1 row selected (0.109 seconds) > {noformat} -- This message was sent by Atlassian JIRA (v6.3.4#6332)