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

James Taylor commented on PHOENIX-1660:
---------------------------------------

You'll want to start by:
- cloning our github mirror repo: http://phoenix.apache.org/source.html
- understanding the basic workflow for contributing: 
http://phoenix.apache.org/contributing.html
- setting up your dev environment: http://phoenix.apache.org/develop.html
- file a sub-task JIRA under this one with the particular math built-in 
function you plan to implement (so that we don't have overlap with others).

FWIW, you won't need to change the grammar or deal with any of those classes I 
mentioned (other than deriving a class from ScalarFunction which implements 
Expression). Give it a shot and follow those instructions here: 
http://phoenix-hbase.blogspot.com/2013/04/how-to-add-your-own-built-in-function.html

> 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
>              Labels: Java, SQL, gsoc2015, mentor
>
> 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)

Reply via email to