drill-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Vova Vysotskyi <volody...@apache.org>
Subject Re: Does drill support variable arguments in customer UDAF
Date Sun, 22 Nov 2020 10:47:34 GMT
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 <par0328@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 <cgivre@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 <wangcong.scut19@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.
> >
> >
> 

Mime
View raw message