[
https://issues.apache.org/jira/browse/PHOENIX-1660?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
James Taylor resolved PHOENIX-1660.
-----------------------------------
Resolution: Fixed
Fix Version/s: 4.5.0
5.0.0
Nice work, [~shuxi0ng]. I made one minor tweak on commit: I explicitly declared
that PDouble.INSTANCE is an allowed type for the arguments. This is slightly
more efficient if a Double is provide already, as it won't convert it to a
DECIMAL and then back to a DOUBLE (which is what you end up needing).
> Implement missing math built-in functions
> -----------------------------------------
>
> Key: PHOENIX-1660
> URL: https://issues.apache.org/jira/browse/PHOENIX-1660
> Project: Phoenix
> Issue Type: Bug
> Reporter: James Taylor
> Assignee: Shuxiong Ye
> Labels: Java, SQL, gsoc2015, mentor
> Fix For: 5.0.0, 4.5.0
>
>
> Take a look at the typical math functions that are implemented in relational
> database systems
> (http://www.postgresql.org/docs/current/static/functions-math.html) and
> implement the same for Phoenix in Java following this guide:
> http://phoenix-hbase.blogspot.com/2013/04/how-to-add-your-own-built-in-function.html
> Examples of missing functions include POWER, LOG, EXP, SQRT, CBRT, etc. As a
> guide, examine how ROUND is implemented in Phoenix as an abstract function
> with concrete functions per type: long, decimal, and date/time types.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)