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

[jira] [Updated] (DRILL-1016) decimal18 comparison with decimal38 fails on some values

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

Mehant Baid updated DRILL-1016:
-------------------------------

    Attachment: DRILL-1016.patch

> decimal18 comparison with decimal38 fails on some values
> --------------------------------------------------------
>
>                 Key: DRILL-1016
>                 URL: https://issues.apache.org/jira/browse/DRILL-1016
>             Project: Apache Drill
>          Issue Type: Bug
>          Components: Functions - Drill
>            Reporter: Chun Chang
>            Assignee: Mehant Baid
>         Attachments: DRILL-1016.patch
>
>
> Comparison (<) between decimal18 and decimal38 fails for the following values:
> 0: jdbc:drill:schema=dfs> select c_row, cast(c_decimal18 as decimal(18,9)), cast(c_decimal38 as decimal(38,9)) from data where c_row < 10 and cast(c_decimal18 as decimal(18,9)) < cast(c_decimal38 as decimal(38,9));
> +------------+------------+------------+
> |   c_row    |   EXPR$1   |   EXPR$2   |
> +------------+------------+------------+
> | 5          | -999999999.000000000 | -999999999.000000000 |
> | 7          | -1.0E-8    | -1.0E-8    |
> +------------+------------+------------+
> This two values are identical, not less than one another.



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