Presto User defined Aggregate throws :java.lang.ClassCastException: class com.facebook.presto.$gen.

22 views
Skip to first unread message

Rijo Joseph

unread,
May 9, 2018, 7:31:58 AM5/9/18
to Presto
Hi,

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

Reply all
Reply to author
Forward
0 new messages