You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ambari.apache.org by "Nitiraj Singh Rathore (JIRA)" <ji...@apache.org> on 2015/11/18 11:18:11 UTC

[jira] [Commented] (AMBARI-13938) Select on large BIGINT in Ambari Hive View returns incorrect value

    [ 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)