You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@drill.apache.org by "Jacques Nadeau (JIRA)" <ji...@apache.org> on 2014/07/02 03:53:29 UTC
[jira] [Resolved] (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 ]
Jacques Nadeau resolved DRILL-1017.
-----------------------------------
Resolution: Fixed
> 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: DrillCommitter
> 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)