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

Naresh P R commented on HIVE-24628:
-----------------------------------

Thanks for the review and merge [~mgergely]

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

Reply via email to