Re: Annotating AggregateFunction accumulator type with @DataTypeHint

2021-01-26 Thread Seth Wiesman
Yes, the FunctionHint annotation has an accumulator field. There is an example in its JavaDoc. Seth On Tue, Jan 26, 2021 at 6:39 AM Yuval Itzchakov wrote: > Hi, I have an aggregate function of the form: > > class Foo extends AggregateFunction[Array[Json], util.List[Json]] > > I want to treat th

Annotating AggregateFunction accumulator type with @DataTypeHint

2021-01-26 Thread Yuval Itzchakov
Hi, I have an aggregate function of the form: class Foo extends AggregateFunction[Array[Json], util.List[Json]] I want to treat the accumulator as a "RAW" type, since Json is an abstract class and this fails at runtime. Is there any way to annotate the AggregateFunction accumulator type? All the