You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@calcite.apache.org by "Vladimir Sitnikov (JIRA)" <ji...@apache.org> on 2014/06/28 07:32:24 UTC
[jira] [Commented] (OPTIQ-314) Allow simple UDFs based on methods
[ https://issues.apache.org/jira/browse/OPTIQ-314?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14046734#comment-14046734 ]
Vladimir Sitnikov commented on OPTIQ-314:
-----------------------------------------
Are you sure it is not available now?
[public static ScalarFunction ScalarFunctionImpl.create(Method method)|https://github.com/julianhyde/optiq/blob/master/core/src/main/java/net/hydromatic/optiq/impl/ScalarFunctionImpl.java#L68] should do the trick.
> 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)