You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@drill.apache.org by "Mehant Baid (JIRA)" <ji...@apache.org> on 2014/05/13 03:11:14 UTC

[jira] [Updated] (DRILL-608) casting a decimal18 to decimal28 produces wrong result

     [ 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)