You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hive.apache.org by "Jason Dere (JIRA)" <ji...@apache.org> on 2014/03/13 02:22:44 UTC
[jira] [Commented] (HIVE-6620) UDF printf doesn't take either CHAR
or VARCHAR as the first argument
[ https://issues.apache.org/jira/browse/HIVE-6620?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13932746#comment-13932746 ]
Jason Dere commented on HIVE-6620:
----------------------------------
+1 if tests pass
> UDF printf doesn't take either CHAR or VARCHAR as the first argument
> --------------------------------------------------------------------
>
> Key: HIVE-6620
> URL: https://issues.apache.org/jira/browse/HIVE-6620
> Project: Hive
> Issue Type: Bug
> Components: UDF
> Affects Versions: 0.12.0
> Reporter: Xuefu Zhang
> Assignee: Xuefu Zhang
> Attachments: HIVE-6620.patch
>
>
> {code}
> hive> desc vc;
> OK
> c char(5) None
> vc varchar(7) None
> s string None
> hive> select printf(c) from vc;
> FAILED: SemanticException [Error 10016]: Line 1:14 Argument type mismatch 'c': Argument 1 of function PRINTF must be "string", but "char(5)" was found.
> {code}
> However, if the argument is string type, the query runs successfully.
--
This message was sent by Atlassian JIRA
(v6.2#6252)