You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tajo.apache.org by "Jihoon Son (JIRA)" <ji...@apache.org> on 2013/12/06 16:25:36 UTC

[jira] [Commented] (TAJO-391) Change setting default type in query from FLOAT4 to FLOAT8

    [ https://issues.apache.org/jira/browse/TAJO-391?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13841347#comment-13841347 ] 

Jihoon Son commented on TAJO-391:
---------------------------------

I think that this is not a problem.
You can use the type casting to get the right results from math functions.

> Change setting default type in query from FLOAT4 to FLOAT8
> ----------------------------------------------------------
>
>                 Key: TAJO-391
>                 URL: https://issues.apache.org/jira/browse/TAJO-391
>             Project: Tajo
>          Issue Type: Improvement
>            Reporter: DaeMyung Kang
>            Assignee: DaeMyung Kang
>            Priority: Minor
>         Attachments: TAJO-391.patch
>
>
> FLOAT4 is default parsed float type in tajo.
> but it can cause some trobles when we use it as FLOAT8.
> for examples.
> 0.4(f) will changed to 0.40000000000005(d)
> so it cause different result from java.Math functions.



--
This message was sent by Atlassian JIRA
(v6.1#6144)