You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@hive.apache.org by "Naresh P R (Jira)" <ji...@apache.org> on 2021/01/14 17:28:00 UTC
[jira] [Resolved] (HIVE-24628) Decimal values are displayed as
scientific notation in beeline
[ https://issues.apache.org/jira/browse/HIVE-24628?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Naresh P R resolved HIVE-24628.
-------------------------------
Fix Version/s: 4.0.0
Resolution: Fixed
> 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
> Fix For: 4.0.0
>
> 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)