You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@drill.apache.org by Vova Vysotskyi <vo...@apache.org> on 2020/11/22 10:47:34 UTC
Re: Does drill support variable arguments in customer UDAF
Hi,
Yes, it was implemented for both, UDF and UDAF. Please take a look at these examples of UADF var arg functions:
https://github.com/apache/drill/blob/master/exec/java-exec/src/test/java/org/apache/drill/exec/fn/impl/testing/CountArgumentsAggFunctions.java
On 2020/10/28 19:34:25, Paul Rogers <pa...@gmail.com> wrote:
> Variable arg UDAF might be a bit harder than var arg UDFs as support is
> needed in the agg operators.
>
> - Paul
>
> On Wed, Oct 28, 2020 at 5:21 AM Charles Givre <cg...@gmail.com> wrote:
>
> > Hi there,
> > Drill does support VARARG UDFs. Take a look at this PR for an example:
> > https://github.com/apache/drill/pull/1835 <
> > https://github.com/apache/drill/pull/1835>
> > -- C
> >
> > > On Oct 28, 2020, at 4:22 AM, wingc.scut@qq.com <wa...@qq.com>
> > wrote:
> > >
> > > I have seen the mailing list history.The same problem is metioned
> > in 2015 and 2017, I wonder if drill support pass variable arguments in
> > customer udaf such as my_sum(1, 2, 3, ......) .I'm looking forward
> > your replay, thanks.
> >
> >
>