hive-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "John Sichi (Resolved) (JIRA)" <>
Subject [jira] [Resolved] (HIVE-508) Better error message for UDF parameter handling
Date Mon, 26 Sep 2011 20:50:12 GMT


John Sichi resolved HIVE-508.

    Resolution: Cannot Reproduce

Not sure where along the line this got fixed, but these days the error message is reasonable:

FAILED: Error in semantic analysis: Line 1:7 Wrong arguments 'a': No matching method for class
org.apache.hadoop.hive.ql.udf.UDFRound with (map<string,string>). Possible choices:
_FUNC_(double)  _FUNC_(double, int)

> Better error message for UDF parameter handling
> -----------------------------------------------
>                 Key: HIVE-508
>                 URL:
>             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.
If you think it was sent incorrectly, please contact your JIRA administrators:!default.jspa
For more information on JIRA, see:


View raw message