[
https://issues.apache.org/jira/browse/OPTIQ-314?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14047022#comment-14047022
]
Julian Hyde commented on OPTIQ-314:
-----------------------------------
Right now the method has to be called "eval". We'd need to add a "String
methodName" member to JsonFunction to allow stuff like
{code:json}
functions: [ { className: "java.lang.String", methodName: "replace" } ]
{code}
> Allow simple UDFs based on methods
> ----------------------------------
>
> Key: OPTIQ-314
> URL: https://issues.apache.org/jira/browse/OPTIQ-314
> Project: optiq
> Issue Type: New Feature
> Reporter: Julian Hyde
> Assignee: Julian Hyde
>
> We already allow UDFs based on classes, provided that that classes have just
> one method. This change would allow UDFs based on classes with several
> methods.
> E.g. should be able to use 'String String.replace(String s, String s2)' as a
> SQL UDF 'REPLACE(String, String, String) RETURNS String'.
--
This message was sent by Atlassian JIRA
(v6.2#6252)