drill-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Parth Chandra (JIRA)" <j...@apache.org>
Subject [jira] [Closed] (DRILL-2620) Casting to float is changing the value slightly
Date Thu, 02 Apr 2015 23:14:58 GMT

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

Mime
View raw message