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 035CF107ED for ; Fri, 31 Jan 2014 20:48:14 +0000 (UTC) Received: (qmail 19901 invoked by uid 500); 31 Jan 2014 20:48:10 -0000 Delivered-To: apmail-hive-dev-archive@hive.apache.org Received: (qmail 19862 invoked by uid 500); 31 Jan 2014 20:48:09 -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 19850 invoked by uid 500); 31 Jan 2014 20:48:09 -0000 Delivered-To: apmail-hadoop-hive-dev@hadoop.apache.org Received: (qmail 19845 invoked by uid 99); 31 Jan 2014 20:48:09 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 31 Jan 2014 20:48:09 +0000 Date: Fri, 31 Jan 2014 20:48:09 +0000 (UTC) From: "Xuefu Zhang (JIRA)" To: hive-dev@hadoop.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (HIVE-6327) A few mathematic functions don't take decimal input 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-6327?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Xuefu Zhang updated HIVE-6327: ------------------------------ Attachment: HIVE-6327.patch > A few mathematic functions don't take decimal input > --------------------------------------------------- > > Key: HIVE-6327 > URL: https://issues.apache.org/jira/browse/HIVE-6327 > Project: Hive > Issue Type: Improvement > Affects Versions: 0.11.0, 0.12.0 > Reporter: Xuefu Zhang > Assignee: Xuefu Zhang > Attachments: HIVE-6327.patch > > > A few mathematical functions, such as sin() cos(), etc. don't take decimal as argument. > {code} > hive> show tables; > OK > Time taken: 0.534 seconds > hive> create table test(d decimal(5,2)); > OK > Time taken: 0.351 seconds > hive> select sin(d) from test; > FAILED: SemanticException [Error 10014]: Line 1:7 Wrong arguments 'd': No matching method for class org.apache.hadoop.hive.ql.udf.UDFSin with (decimal(5,2)). Possible choices: _FUNC_(double) > {code} > HIVE-6246 covers only sign() function. The remaining ones, including sin, cos, tan, asin, acos, atan, exp, ln, log, log10, log2, radians, and sqrt. These are non-generic UDFs. -- This message was sent by Atlassian JIRA (v6.1.5#6160)