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

Jacques Nadeau resolved DRILL-1144.
-----------------------------------

    Resolution: Fixed

> 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: 0.4.0
>            Reporter: Norris Lee
>            Assignee: DrillCommitter
>             Fix For: 0.4.0
>
>         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)

Reply via email to