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 A5035200B41 for ; Thu, 23 Jun 2016 01:41:18 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id A2B66160A36; Wed, 22 Jun 2016 23:41:18 +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 C2BB7160A69 for ; Thu, 23 Jun 2016 01:41:17 +0200 (CEST) Received: (qmail 25044 invoked by uid 500); 22 Jun 2016 23:41:16 -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 24741 invoked by uid 99); 22 Jun 2016 23:41:16 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 22 Jun 2016 23:41:16 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id 77ECB2C1F5D for ; Wed, 22 Jun 2016 23:41:16 +0000 (UTC) Date: Wed, 22 Jun 2016 23:41:16 +0000 (UTC) From: "Sergey Shelukhin (JIRA)" To: issues@hive.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (HIVE-11802) Float-point numbers are displayed with different precision in Beeline/JDBC MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Wed, 22 Jun 2016 23:41:18 -0000 [ https://issues.apache.org/jira/browse/HIVE-11802?page=3Dcom.atlassia= n.jira.plugin.system.issuetabpanels:all-tabpanel ] Sergey Shelukhin updated HIVE-11802: ------------------------------------ Fix Version/s: 1.2.2 1.3.0 > Float-point numbers are displayed with different precision in Beeline/JDB= C > -------------------------------------------------------------------------= - > > Key: HIVE-11802 > URL: https://issues.apache.org/jira/browse/HIVE-11802 > Project: Hive > Issue Type: Bug > Affects Versions: 1.2.1 > Reporter: Sergio Pe=C3=B1a > Assignee: lijp > Fix For: 1.3.0, 2.0.0, 1.2.2 > > Attachments: HIVE-11802.3.patch > > > When inserting float-point numbers to a table, the values displayed on be= eline or jdbc are with different precision. > How to reproduce: > {noformat} > 0: jdbc:hive2://localhost:10000> create table decimals (f float, af array= , d double, ad array) stored as parquet; > No rows affected (0.294 seconds) > 0: jdbc:hive2://localhost:10000> insert into table decimals select 1.1005= 8, array(cast(1.10058 as float)), 2.0133, array(2.0133) from dummy limit 1; > ... > No rows affected (20.089 seconds) > 0: jdbc:hive2://localhost:10000> select f, af, af[0], d, ad[0] from decim= als; > +---------------------+------------+---------------------+---------+-----= ----+--+ > | f | af | _c2 | d | _c= 4 | > +---------------------+------------+---------------------+---------+-----= ----+--+ > | 1.1005799770355225 | [1.10058] | 1.1005799770355225 | 2.0133 | 2.01= 33 | > +---------------------+------------+---------------------+---------+-----= ----+--+ > {noformat} > When displaying arrays, the values are displayed correctly, but if I prin= t a specific element, it is then displayed with more decimal positions. -- This message was sent by Atlassian JIRA (v6.3.4#6332)