drill-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jacques Nadeau (JIRA)" <j...@apache.org>
Subject [jira] [Resolved] (DRILL-608) casting a decimal18 to decimal28 produces wrong result
Date Tue, 13 May 2014 18:06:15 GMT

     [ https://issues.apache.org/jira/browse/DRILL-608?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Jacques Nadeau resolved DRILL-608.
----------------------------------

    Resolution: Fixed

fixed in b75782d

> casting a decimal18 to decimal28 produces wrong result
> ------------------------------------------------------
>
>                 Key: DRILL-608
>                 URL: https://issues.apache.org/jira/browse/DRILL-608
>             Project: Apache Drill
>          Issue Type: Bug
>            Reporter: Chun Chang
>         Attachments: DRILL-608.patch
>
>
> 0: jdbc:drill:schema=dfs> select c_row, cast(c_decimal18 as varchar(20)), cast(cast(c_decimal18
as decimal(18,9)) as decimal(28,10)) from data where c_row = 9;
> +------------+------------+------------+
> |   c_row    |   EXPR$1   |   EXPR$2   |
> +------------+------------+------------+
> | 9          | 123456789.123456789 | 0.1234567891 |
> +------------+------------+------------+
> 1 row selected (0.164 seconds)



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

Mime
View raw message