drill-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Mehant Baid (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (DRILL-1017) Comparison (<>) between decimal38 and decimal18 fails on some value
Date Fri, 20 Jun 2014 07:05:24 GMT

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

Mehant Baid updated DRILL-1017:
-------------------------------

    Attachment: DRILL-1017.patch

This patch simply adds a unit test for this issue; Actual fix is in Optiq; pull request for
Drill's Optiq fork: https://github.com/jacques-n/optiq/pull/7

> Comparison (<>) between decimal38 and decimal18 fails on some value
> -------------------------------------------------------------------
>
>                 Key: DRILL-1017
>                 URL: https://issues.apache.org/jira/browse/DRILL-1017
>             Project: Apache Drill
>          Issue Type: Bug
>          Components: Functions - Drill
>            Reporter: Chun Chang
>            Assignee: Mehant Baid
>         Attachments: DRILL-1017.patch
>
>
> The not equal comparison between decimal38 and decimal18 failed on the value: 12345.678900000.
Same value was not compared as equal.
> 0: jdbc:drill:schema=dfs> select c_row, cast(c_decimal38 as decimal(38,9)) as decimal38,
cast(c_decimal18 as decimal(18,9)) as decimal18 from data where c_row < 10 and cast(c_decimal38
as decimal(38,9)) <> cast(c_decimal18 as decimal(18,9));
> +------------+------------+------------+
> |   c_row    | decimal38  | decimal18  |
> +------------+------------+------------+
> | 8          | 12345.678900000 | 12345.678900000 |
> +------------+------------+------------+



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

Mime
View raw message