It isn't yet supported but is something I think a lot of people would find useful. Depending on how ambitious you are, maybe you could pick it up?
On Tue, Mar 31, 2015 at 10:05 AM, Shadi Khalifa <[email protected]> wrote: > Hello everyone, > I wonder if there is a way to send a variable number (Array) of attributes > (columns) to a custom user defined aggregate function. > I want to be able to have something like:Select myAggrFn(col1,col2,..., > coln) from mytable; > > I wonder if there is something like the following or anything else that > can handle this case:@FunctionTemplate(name = "myAggrFn", scope = > FunctionTemplate.FunctionScope.POINT_AGGREGATE)public static class > MyAggrFnimplements DrillAggFunc{ @Param ObjectHolder[] in; > > I know it's weird to have a function like that, but I'm implementing > machine learning into Drill and need to pass some columns or maybe the > whole row to the aggregate function to train and use the model. > Regards > Shadi KhalifaPhD CandidateSchool of Computing Queen's University Canada > I'm just a neuron in the society collective brain > > 01001001 00100000 01101100 01101111 01110110 01100101 00100000 01000101 > 01100111 01111001 01110000 01110100 > P Please consider your environmental responsibility before printing this > e-mail > >
