You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@calcite.apache.org by "Stamatis Zampetakis (JIRA)" <ji...@apache.org> on 2019/05/25 16:07:00 UTC

[jira] [Commented] (CALCITE-2772) Support varargs for user-defined functions (UDFs)

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

Stamatis Zampetakis commented on CALCITE-2772:
----------------------------------------------

Hey [~pzw2018], before getting to varargs, I was wondering if we even support simple arrays. Have you tested something like the following:

{code:java}
public class SumInts {
  public String eval(Integer[] ints) {...}
}
{code}


> Support varargs for user-defined functions (UDFs)
> -------------------------------------------------
>
>                 Key: CALCITE-2772
>                 URL: https://issues.apache.org/jira/browse/CALCITE-2772
>             Project: Calcite
>          Issue Type: Improvement
>          Components: core
>            Reporter: pengzhiwei
>            Assignee: pengzhiwei
>            Priority: Major
>
> Support varargs for user-defined functions as the case followed:
> {code:java}
> public class ConcatWs {
>   public String eval(String sep, String... strs) {...}
> }{code}
>  



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)