You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hive.apache.org by "Szehon Ho (JIRA)" <ji...@apache.org> on 2014/11/12 09:00:54 UTC

[jira] [Updated] (HIVE-6622) UDF translate doesn't take either CHAR or VARCHAR as any of its arguments

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

Szehon Ho updated HIVE-6622:
----------------------------
    Labels:   (was: TODOC14)

Added doc as described.

> UDF translate doesn't take either CHAR or VARCHAR as any of its arguments
> -------------------------------------------------------------------------
>
>                 Key: HIVE-6622
>                 URL: https://issues.apache.org/jira/browse/HIVE-6622
>             Project: Hive
>          Issue Type: Bug
>          Components: UDF
>    Affects Versions: 0.12.0
>            Reporter: Xuefu Zhang
>            Assignee: Wilbur Yang
>             Fix For: 0.14.0
>
>         Attachments: HIVE-6622.1.patch
>
>
> UDF translate(input, from, to) doesn't accept any CHAR or VARCHAR typed argument.
> {code}
> hive> desc vc;
> c                   	char(5)             	None                
> vc                  	varchar(7)          	None                
> s                   	string              	None                
> hive> select translate("my input", c, "ll") from vc;
> FAILED: SemanticException [Error 10016]: Line 1:29 Argument type mismatch 'c': A string argument was expected but an argument of type char(5) was given.
> {code}
> However, if the type is String, then the UDF works fine.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)