hive-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Alexander Pivovarov (JIRA)" <>
Subject [jira] [Created] (HIVE-9858) Create cbrt (cube root) UDF
Date Wed, 04 Mar 2015 19:40:38 GMT
Alexander Pivovarov created HIVE-9858:

             Summary: Create cbrt (cube root) UDF
                 Key: HIVE-9858
             Project: Hive
          Issue Type: Improvement
            Reporter: Alexander Pivovarov

returns the cube root of a double value
cbrt(double a) : double

For example:
select cbrt(87860583272930481.0);

I noticed that Math.pow(a, 1.0/3.0) and hive power UDF return 444560.99999999965 for the example
However Math.cbrt returns 444561.0
This is why we should have hive cbrt function in hive

This message was sent by Atlassian JIRA

View raw message