hive-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Xuefu Zhang (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (HIVE-6039) Round, AVG and SUM functions reject char/varch input while accepting string input
Date Mon, 16 Dec 2013 22:43:08 GMT

     [ https://issues.apache.org/jira/browse/HIVE-6039?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Xuefu Zhang updated HIVE-6039:
------------------------------

    Status: Patch Available  (was: Open)

> Round, AVG and SUM functions reject char/varch input while accepting string input
> ---------------------------------------------------------------------------------
>
>                 Key: HIVE-6039
>                 URL: https://issues.apache.org/jira/browse/HIVE-6039
>             Project: Hive
>          Issue Type: Bug
>          Components: UDF
>            Reporter: Xuefu Zhang
>            Assignee: Xuefu Zhang
>             Fix For: 0.13.0
>
>         Attachments: HIVE-6039.patch
>
>
> An error similar to the following will occur:
> {code}
> hive> create table tabs (c char(8), vc varchar(10)) ROW FORMAT DELIMITED FIELDS TERMINATED
BY '\t';
> hive> select sum(c), avg(c), sum(vc), avg(vc) from tabs;
> FAILED: UDFArgumentTypeException Only numeric or string type arguments are accepted but
char(8) is passed.
> {code}



--
This message was sent by Atlassian JIRA
(v6.1.4#6159)

Mime
View raw message