[
https://issues.apache.org/jira/browse/DRILL-608?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Mehant Baid updated DRILL-608:
------------------------------
Attachment: DRILL-608.patch
> 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)