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/20 09:05:24 UTC
[jira] [Updated] (DRILL-1017) Comparison (<>) between decimal38 and
decimal18 fails on some value
[ 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)