You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@hive.apache.org by "ASF GitHub Bot (Jira)" <ji...@apache.org> on 2021/01/14 11:02:00 UTC

[jira] [Work logged] (HIVE-24628) Decimal values are displayed as scientific notation in beeline

     [ https://issues.apache.org/jira/browse/HIVE-24628?focusedWorklogId=535955&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-535955 ]

ASF GitHub Bot logged work on HIVE-24628:
-----------------------------------------

                Author: ASF GitHub Bot
            Created on: 14/Jan/21 11:01
            Start Date: 14/Jan/21 11:01
    Worklog Time Spent: 10m 
      Work Description: miklosgergely merged pull request #1861:
URL: https://github.com/apache/hive/pull/1861


   


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Issue Time Tracking
-------------------

            Worklog Id:     (was: 535955)
    Remaining Estimate: 0h
            Time Spent: 10m

> Decimal values are displayed as scientific notation in beeline
> --------------------------------------------------------------
>
>                 Key: HIVE-24628
>                 URL: https://issues.apache.org/jira/browse/HIVE-24628
>             Project: Hive
>          Issue Type: Bug
>          Components: Beeline
>            Reporter: Naresh P R
>            Assignee: Naresh P R
>            Priority: Major
>              Labels: pull-request-available
>          Time Spent: 10m
>  Remaining Estimate: 0h
>
> As we are using BigDecimal.toString() returns scientific notation instead of original text, which confuse customer. It should be changed to toPlainString() at here
> [https://github.com/apache/hive/blob/master/beeline/src/java/org/apache/hive/beeline/Rows.java#L165]
> Repro steps:
>  
> {code:java}
> beeline> select cast(0 as decimal(20,10));
> //output
> 0E-10 
> {code}
>  



--
This message was sent by Atlassian Jira
(v8.3.4#803005)