Return-Path: X-Original-To: apmail-ambari-dev-archive@www.apache.org Delivered-To: apmail-ambari-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 19BCC18AD4 for ; Wed, 18 Nov 2015 10:18:12 +0000 (UTC) Received: (qmail 85128 invoked by uid 500); 18 Nov 2015 10:18:11 -0000 Delivered-To: apmail-ambari-dev-archive@ambari.apache.org Received: (qmail 85028 invoked by uid 500); 18 Nov 2015 10:18:11 -0000 Mailing-List: contact dev-help@ambari.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@ambari.apache.org Delivered-To: mailing list dev@ambari.apache.org Received: (qmail 84714 invoked by uid 99); 18 Nov 2015 10:18:11 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 18 Nov 2015 10:18:11 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id 14E402C1F6E for ; Wed, 18 Nov 2015 10:18:11 +0000 (UTC) Date: Wed, 18 Nov 2015 10:18:11 +0000 (UTC) From: "Nitiraj Singh Rathore (JIRA)" To: dev@ambari.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (AMBARI-13938) Select on large BIGINT in Ambari Hive View returns incorrect 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/AMBARI-13938?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15010677#comment-15010677 ] Nitiraj Singh Rathore commented on AMBARI-13938: ------------------------------------------------ Server was sending the data properly. But Javascript does not support number with such large number of digits, so It was approximating. Changes : Now all the data sent will be strings and numbers. A patch (AMBARI-13938_branch-2.1.patch) has been submitted regarding the same. > Select on large BIGINT in Ambari Hive View returns incorrect value > ------------------------------------------------------------------ > > Key: AMBARI-13938 > URL: https://issues.apache.org/jira/browse/AMBARI-13938 > Project: Ambari > Issue Type: Bug > Components: ambari-views > Affects Versions: 2.1.2 > Reporter: Nitiraj Singh Rathore > Assignee: Nitiraj Singh Rathore > Fix For: 2.1.3 > > Attachments: AMBARI-13938_branch-2.1.patch > > > PROBLEM: Selecting on large values for a bigint column, the value is rounded. > STEPS TO REPRODUCE: > From the CLI: > create table test (col1 bigint); > insert into test values (59917352285401088); > select * from test; > 59917352285401088 > In Ambari View: > select * from test; > 59917352285401090; > EXPECTED RESULT: > Ambari view should return 59917352285401088. This is well within the scope of a bigint. > ACTUAL RESULT: > Selected value is rounded. -- This message was sent by Atlassian JIRA (v6.3.4#6332)