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

Chun Chang closed DRILL-608.
----------------------------

> 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
>             Fix For: 0.4.0
>
>         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.3.15#6346)

Reply via email to