drill-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jacques Nadeau (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (DRILL-1121) decimal division rounding error
Date Mon, 21 Jul 2014 02:49:43 GMT

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

Jacques Nadeau commented on DRILL-1121:
---------------------------------------

fixed by e5c2da0 or earlier

> decimal division rounding error
> -------------------------------
>
>                 Key: DRILL-1121
>                 URL: https://issues.apache.org/jira/browse/DRILL-1121
>             Project: Apache Drill
>          Issue Type: Bug
>          Components: Functions - Drill
>            Reporter: Chun Chang
>            Assignee: DrillCommitter
>         Attachments: DRILL-1121.patch
>
>
> #Wed Jul 09 10:28:32 PDT 2014
> git.commit.id.abbrev=810a204
> In the following decimal division, the rounding of number large than 5 should be rounded
up.
> postgres:
> foodmart=# select cast('123456789' as decimal(9,0)) / cast('12345678901234.56789123456789'
as decimal(28,14)) from data limit 1;
>           ?column?
> ----------------------------
>  0.000009999999998999999999
> drill:
> 0: jdbc:drill:schema=dfs> select cast('123456789' as decimal(9,0)) / cast('12345678901234.56789123456789'
as decimal(28,14)) from data limit 1;
> +------------+
> |   EXPR$0   |
> +------------+
> | 0.000009999999998 |
> The last digit should be 9.



--
This message was sent by Atlassian JIRA
(v6.2#6252)

Mime
View raw message