drill-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jacques Nadeau (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (DRILL-1144) C++ Client Decimal ignores leading zeros
Date Mon, 21 Jul 2014 03:35:39 GMT

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

Jacques Nadeau updated DRILL-1144:
----------------------------------

    Assignee: Parth Chandra

> C++ Client Decimal ignores leading zeros
> ----------------------------------------
>
>                 Key: DRILL-1144
>                 URL: https://issues.apache.org/jira/browse/DRILL-1144
>             Project: Apache Drill
>          Issue Type: Bug
>          Components: Client - C++
>    Affects Versions: 1.0.0-BETA1
>            Reporter: Norris Lee
>            Assignee: Parth Chandra
>         Attachments: DRILL-1144.diff
>
>
> For cases where a decimal number goes through an arithmetic operation and ends up with
leading zeros, the zeros are dropped and an error occurs.
> For example, a query like this
> {code}
> select cast('-99999999' as decimal(9,0)) / cast('12345678901234.56789123456789' as decimal(28,14))
FROM `dfs`.`default`.`/opt/drill/raw-files/voter` limit 1
> {code}
> will cause an error



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

Mime
View raw message