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

Aakarsh Agarwal commented on PHOENIX-1660:
------------------------------------------

Hi James,
Thanks for replying so soon. I got what u mentioned in your comment. I need to 
first go through the codes of classes and grammar file you mentioned in ordet 
to get hang of it and then implement a built in function.

In the original desciption, it is only mentioned how to create a new class for 
the implementation of built-in functions. I think I need to first fork the 
original existing code from Github and then implement and add a new class to 
it.Is it so?

To add, will you recommend any particular built-in function that may be easy to 
implement as was the case with REVERSE function, or I may start with any of 
those mentioned in the original document?

Regards
Aakarsh Agarwal

> 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