I am trying to use a custom user defined aggregator over a window. When I use an untyped aggregator, the query works. However, I am unable to use ty