You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@impala.apache.org by "Thomas Tauber-Marshall (JIRA)" <ji...@apache.org> on 2017/10/02 16:54:00 UTC
[jira] [Resolved] (IMPALA-6003) Trunc() incorrect results with
large decimal
[ https://issues.apache.org/jira/browse/IMPALA-6003?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Thomas Tauber-Marshall resolved IMPALA-6003.
--------------------------------------------
Resolution: Not A Problem
> Trunc() incorrect results with large decimal
> --------------------------------------------
>
> Key: IMPALA-6003
> URL: https://issues.apache.org/jira/browse/IMPALA-6003
> Project: IMPALA
> Issue Type: Bug
> Components: Frontend
> Affects Versions: Impala 2.11.0
> Reporter: Thomas Tauber-Marshall
> Priority: Critical
>
> The trunc/dtrunc/truncate(double) built in returns incorrect results with large decimals:
> {noformat}
> select trunc(cast(55.9999999999999999 as double))
> +--------------------------------------------+
> | trunc(cast(55.9999999999999999 as double)) |
> +--------------------------------------------+
> | 56 | <- note: should be 55
> +--------------------------------------------+
> {noformat}
--
This message was sent by Atlassian JIRA
(v6.4.14#64029)