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/12 22:54:00 UTC
[jira] [Assigned] (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 reassigned HIVE-24628:
---------------------------------
> 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
> Reporter: Naresh P R
> Assignee: Naresh P R
> Priority: Major
>
> 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)