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 05A35184CB for ; Mon, 11 Jan 2016 09:36:40 +0000 (UTC) Received: (qmail 15556 invoked by uid 500); 11 Jan 2016 09:36:40 -0000 Delivered-To: apmail-hive-issues-archive@hive.apache.org Received: (qmail 15532 invoked by uid 500); 11 Jan 2016 09:36:39 -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 15510 invoked by uid 99); 11 Jan 2016 09:36:39 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 11 Jan 2016 09:36:39 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id CBC502C1F57 for ; Mon, 11 Jan 2016 09:36:39 +0000 (UTC) Date: Mon, 11 Jan 2016 09:36:39 +0000 (UTC) From: "lijp (JIRA)" To: issues@hive.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Assigned] (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 [ https://issues.apache.org/jira/browse/HIVE-11802?page=3Dcom.atlassia= n.jira.plugin.system.issuetabpanels:all-tabpanel ] lijp reassigned HIVE-11802: --------------------------- Assignee: lijp (was: Sergio Pe=C3=B1a) > 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: 2.0.0 > > 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)