hive-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Carl Steinbach (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (HIVE-508) Better error message for UDF parameter handling
Date Tue, 05 Apr 2011 22:52:06 GMT

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

Carl Steinbach updated HIVE-508:
--------------------------------

    Component/s: UDF
                 Diagnosability

> Better error message for UDF parameter handling
> -----------------------------------------------
>
>                 Key: HIVE-508
>                 URL: https://issues.apache.org/jira/browse/HIVE-508
>             Project: Hive
>          Issue Type: Bug
>          Components: Diagnosability, UDF
>            Reporter: Zheng Shao
>
> {code}
> CREATE TABLE x (a map<string,string>);
> SELECT round(a) FROM x;
> {code}
> This will show an error message:
> FAILED: Unknown exception : org.apache.hadoop.hive.serde2.typeinfo.MapTypeInfo cannot
be cast to org.apache.hadoop.hive.serde2.typeinfo.PrimitiveTypeInfo
> We need better error messsage like:
> FAILED: Unable to pass a (type: map<string,string>) to function round.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

Mime
View raw message