I am trying to add a HyperLogLogPlus udaf to presto 0.184 version.
I am using this repo as a reference : https://github.com/vitillo/presto-hyperloglog.
Made some changes to use stream-api 's HyperLogLogPlus instead of DenseHLL .
But when I run the aggregate, I am getting a ClassCastException:
java.lang.ClassCastException: class com.facebook.presto.$gen.HLLHLLHllStreamMergeAccumulator_1
at java.lang.Class.asSubclass(Class.java:3404)
at com.facebook.presto.bytecode.CompilerUtils.defineClass(CompilerUtils.java:74)
at com.facebook.presto.bytecode.CompilerUtils.defineClass(CompilerUtils.java:79)
at com.facebook.presto.operator.aggregation.AccumulatorCompiler.generateAccumulatorClass(AccumulatorCompiler.java:154)
Can anyone please help me to debug this? I am not sure what exactly am I doing wrong.
Thanks,
Rijo