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

Alexander Pivovarov updated HIVE-9858:
--------------------------------------
    Component/s: UDF

> Create cbrt (cube root) UDF
> ---------------------------
>
>                 Key: HIVE-9858
>                 URL: https://issues.apache.org/jira/browse/HIVE-9858
>             Project: Hive
>          Issue Type: Improvement
>          Components: UDF
>            Reporter: Alexander Pivovarov
>
> returns the cube root of a double value
> cbrt(double a) : double
> For example:
> {code}
> select cbrt(87860583272930481.0);
> OK
> 444561.0
> {code}
> I noticed that Math.pow(a, 1.0/3.0) and hive power UDF return 
> 444560.99999999965 for the example above.
> However Math.cbrt returns 444561.0
> This is why we should have hive cbrt function in hive



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

Reply via email to