hive-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Xuefu Zhang (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (HIVE-12772) Beeline/JDBC output of decimal values is not 0-padded, does not match with CLI output
Date Mon, 04 Jan 2016 21:00:40 GMT

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

Xuefu Zhang commented on HIVE-12772:
------------------------------------

Hi [~jdere], thanks for reporting and fixing the issue. The patch looks good. One thing I'm
not clear is how the trailing zeroes (if any) get lost. I assume that the server sends the
string value with correct trailing zeroes. If that's not the case, should we fix the server
side instead?

> Beeline/JDBC output of decimal values is not 0-padded, does not match with CLI output
> -------------------------------------------------------------------------------------
>
>                 Key: HIVE-12772
>                 URL: https://issues.apache.org/jira/browse/HIVE-12772
>             Project: Hive
>          Issue Type: Bug
>          Components: JDBC
>            Reporter: Jason Dere
>            Assignee: Jason Dere
>         Attachments: HIVE-12772.1.patch
>
>
> HIVE-12063 changed the output of decimal values to pad zeros to the column's full scale
for Hive CLI.
> It looks like Beeline and JDBC still have the old behavior that strips trailing 0s.
> Beeline:
> {noformat}
> +---------------+---------------+--+
> |      c1       |      c2       |
> +---------------+---------------+--+
> | 1.9999999999  | 1.9999999999  |
> | 9.9999999999  | 9.9999999999  |
> +---------------+---------------+--+
> {noformat}
> HiveCli:
> {noformat}
> 1.99999999990	1.9999999999
> 9.99999999990	9.9999999999
> {noformat}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message