hive-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Alexander Pivovarov (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (HIVE-9857) Create Factorial UDF
Date Wed, 11 Mar 2015 20:22:38 GMT

     [ 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)

Mime
View raw message