drill-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Norris Lee (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (DRILL-1144) C++ Client Decimal ignores leading zeros
Date Tue, 15 Jul 2014 20:22:07 GMT

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

Norris Lee updated DRILL-1144:
------------------------------

    Attachment: DRILL-1144.diff

> 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
>         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