[
https://issues.apache.org/jira/browse/DRILL-946?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14029484#comment-14029484
]
Chun Chang commented on DRILL-946:
----------------------------------
verified fix in this checkin
#Thu Jun 12 10:01:47 PDT 2014
git.commit.id.abbrev=4198a17
0: jdbc:drill:schema=dfs> select sum(cast(c_decimal9 as decimal(18,9))) from
data;
+------------+
| EXPR$0 |
+------------+
| 1.2358288447063999E8 |
+------------+
> sum(decimal18) only give precession 9 result
> --------------------------------------------
>
> Key: DRILL-946
> URL: https://issues.apache.org/jira/browse/DRILL-946
> Project: Apache Drill
> Issue Type: Bug
> Components: Functions - Drill
> Reporter: Chun Chang
> Assignee: Mehant Baid
> Attachments: DRILL-946.patch
>
>
> #Mon Jun 09 10:22:40 PDT 2014
> git.commit.id.abbrev=fb2091a
> When I sum() a decimal18, I used to get result with P18, with this build, I
> only get P9. Looks like a regression.
> Here is the query through drill:
> 0: jdbc:drill:schema=dfs> select sum(cast(c_decimal9 as decimal(18,9))) from
> data;
> +------------+
> | EXPR$0 |
> +------------+
> | 1.23582883E8 |
> +------------+
> And I used to get
> 1.2358288447063999E8
--
This message was sent by Atlassian JIRA
(v6.2#6252)