hive-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Xuefu Zhang (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (HIVE-13380) Decimal should have lower precedence than double in type hierachy
Date Thu, 31 Mar 2016 03:29:25 GMT

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

Xuefu Zhang commented on HIVE-13380:
------------------------------------

I think this came to discussion in the past, and was bounced back because of b/c concerns.
In essence, decimal is an exact type, while double/float is not. When an exact type operates
with a non-exact type, the result is non-exact. Along this line, we should also revisit the
case of other exact types (int, long, etc) operating with double/float.

> Decimal should have lower precedence than double in type hierachy
> -----------------------------------------------------------------
>
>                 Key: HIVE-13380
>                 URL: https://issues.apache.org/jira/browse/HIVE-13380
>             Project: Hive
>          Issue Type: Bug
>          Components: Types
>            Reporter: Ashutosh Chauhan
>            Assignee: Ashutosh Chauhan
>         Attachments: HIVE-13380.patch
>
>
> Currently its other way round. Also, decimal should be lower than float.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message