You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@hive.apache.org by "Gopal V (JIRA)" <ji...@apache.org> on 2018/03/20 05:51:00 UTC

[jira] [Commented] (HIVE-18997) Hive column casting from decimal to double is resulting in NULL

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

Gopal V commented on HIVE-18997:
--------------------------------

Have you tested with Hive-3.0 instead of 1.1?

> Hive column casting from decimal to double is resulting in NULL
> ---------------------------------------------------------------
>
>                 Key: HIVE-18997
>                 URL: https://issues.apache.org/jira/browse/HIVE-18997
>             Project: Hive
>          Issue Type: Bug
>          Components: CLI, distribution
>    Affects Versions: 1.1.0
>         Environment: Hive CLI  and cloudera 5.8.3 distribution
>            Reporter: Rangaswamy Narayan
>            Priority: Major
>
> I have hive table table1 schema of the table looks like this
> {{[CREATE TABLE table1(p_decimal1 DECIMAL(38,5)) ROW FORMAT DELIMITED FIELDS TERMINATED BY ',' STORED AS TEXTFILE] }}
> and i have below value in the table
> {{row : col(p_decimal1) row1 : 12345123451234512345123.45123 }}
> in later stage if i execute
> {{select CAST(p_decimal1 AS DOUBLE) from table1; }}
> query then I am getting {{NULL}} as a output. 
> expected output should be non-null value.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)