Return-Path: X-Original-To: apmail-hive-dev-archive@www.apache.org Delivered-To: apmail-hive-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 2823B11042 for ; Thu, 19 Jun 2014 01:03:11 +0000 (UTC) Received: (qmail 92309 invoked by uid 500); 19 Jun 2014 01:03:10 -0000 Delivered-To: apmail-hive-dev-archive@hive.apache.org Received: (qmail 92242 invoked by uid 500); 19 Jun 2014 01:03:10 -0000 Mailing-List: contact dev-help@hive.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@hive.apache.org Delivered-To: mailing list dev@hive.apache.org Received: (qmail 92227 invoked by uid 500); 19 Jun 2014 01:03:10 -0000 Delivered-To: apmail-hadoop-hive-dev@hadoop.apache.org Received: (qmail 92224 invoked by uid 99); 19 Jun 2014 01:03:10 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 19 Jun 2014 01:03:10 +0000 Date: Thu, 19 Jun 2014 01:03:10 +0000 (UTC) From: "Wilbur Yang (JIRA)" To: hive-dev@hadoop.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (HIVE-6622) UDF translate doesn't take either CHAR or VARCHAR as any of its arguments MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/HIVE-6622?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Wilbur Yang updated HIVE-6622: ------------------------------ Status: Patch Available (was: Open) > 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: Xuefu Zhang > 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.2#6252)