[ 
https://issues.apache.org/jira/browse/PHOENIX-2015?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14566144#comment-14566144
 ] 

Shuxiong Ye commented on PHOENIX-2015:
--------------------------------------

The patch above will firstly turn input to double type, and using 
java.lang.Math related functions to get the result.

Note that, for both types BigDecimal and long, when type cast occurs from these 
two types to double, there will be a loss of precision.

java.lang.Math is only support for double.

> Implement Build-in math function CBRT
> -------------------------------------
>
>                 Key: PHOENIX-2015
>                 URL: https://issues.apache.org/jira/browse/PHOENIX-2015
>             Project: Phoenix
>          Issue Type: Sub-task
>            Reporter: Shuxiong Ye
>            Assignee: Shuxiong Ye
>             Fix For: 5.0.0, 4.5.0, 4.4.1
>
>         Attachments: 0001-Implement-Build-in-math-function-CBRT.patch
>
>
> Implement math build-in function cube root



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

Reply via email to