Return-Path: X-Original-To: apmail-hive-issues-archive@minotaur.apache.org Delivered-To: apmail-hive-issues-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id C9ED317886 for ; Wed, 11 Mar 2015 20:22:44 +0000 (UTC) Received: (qmail 43417 invoked by uid 500); 11 Mar 2015 20:22:38 -0000 Delivered-To: apmail-hive-issues-archive@hive.apache.org Received: (qmail 43396 invoked by uid 500); 11 Mar 2015 20:22:38 -0000 Mailing-List: contact issues-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 issues@hive.apache.org Received: (qmail 43386 invoked by uid 99); 11 Mar 2015 20:22:38 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 11 Mar 2015 20:22:38 +0000 Date: Wed, 11 Mar 2015 20:22:38 +0000 (UTC) From: "Alexander Pivovarov (JIRA)" To: issues@hive.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (HIVE-9857) Create Factorial UDF 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-9857?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Alexander Pivovarov updated HIVE-9857: -------------------------------------- Attachment: HIVE-9857.3.patch patch #3 - removed dependency on commons-math3 because no other hive classes use it and factorial() implementations is simple. > Create Factorial UDF > -------------------- > > Key: HIVE-9857 > URL: https://issues.apache.org/jira/browse/HIVE-9857 > Project: Hive > Issue Type: Improvement > Components: UDF > Reporter: Alexander Pivovarov > Assignee: Alexander Pivovarov > Attachments: HIVE-9857.1.patch, HIVE-9857.2.patch, HIVE-9857.3.patch > > > Function signature: factorial(int a): bigint > For example 5!= 5*4*3*2*1=120 > {code} > select factorial(5); > OK > 120 > {code} -- This message was sent by Atlassian JIRA (v6.3.4#6332)