[
https://issues.apache.org/jira/browse/DRILL-2620?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Parth Chandra closed DRILL-2620.
--------------------------------
Resolution: Won't Fix
As Ted said, we cannot provide accuracy beyond 6 digits for float.
> Casting to float is changing the value slightly
> -----------------------------------------------
>
> Key: DRILL-2620
> URL: https://issues.apache.org/jira/browse/DRILL-2620
> Project: Apache Drill
> Issue Type: Bug
> Components: Execution - Data Types
> Reporter: Rahul Challapalli
> Assignee: Daniel Barclay (Drill)
>
> git.commit.id.abbrev=c11fcf7
> Data Set :
> {code}
> 2345552345.5342
> 4784.5735
> {code}
> Drill Query :
> {code}
> select cast(columns[0] as float) from `abc.tbl`;
> +------------+
> | EXPR$0 |
> +------------+
> | 2.34555238E9 |
> | 4784.5737 |
> +------------+
> {code}
> I am not sure whether this is a known limitation or a bug
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)