Jacob M
02/16/2022, 7:45 PMcom.clearspring.analytics and generating my HLL like this:
val hll = new HyperLogLog(12)
hll.offer(rows.filter(p => p.customer.isDefined).map(p => p.customer.get))
val serializedHll = ObjectSerDeUtils.HYPER_LOG_LOG_SER_DE.serialize(hll)
it seems to ~work ok but when i generate segments i'm getting some errors that I'm not really sure how to debug. any thoughts?
java.lang.RuntimeException: Caught exception while de-serializing HyperLogLog
Suppressed: java.lang.NullPointerException atorg.apache.pinot.segment.local.startree.v2.builder.OffHeapSingleTreeBuilder.close(OffHeapSingleTreeBuilder.java:346)
at org.apache.pinot.segment.local.startree.v2.builder.MultipleTreesBuilder.build(MultipleTreesBuilder.java:143)
and when i look at where the null pointer is coming from, it seems to be from _starTreeRecordBuffer.close() which seems odd?Jacob M
02/16/2022, 7:46 PMname: "customers"
dataType: "BYTES"
and set a functionColumnPairs for DISTINCTCOUNTHLL__customersMayank
Mayank
2.7.0Mayank
Jacob M
02/17/2022, 2:15 AMJacob M
02/17/2022, 7:46 AMCaused by: java.lang.RuntimeException: Caught exception while de-serializing HyperLogLog
at org.apache.pinot.segment.local.utils.CustomSerDeUtils$6.deserialize(CustomSerDeUtils.java:172)
at org.apache.pinot.segment.local.utils.CustomSerDeUtils$6.deserialize(CustomSerDeUtils.java:156)
at org.apache.pinot.segment.local.aggregator.DistinctCountHLLValueAggregator.deserializeAggregatedValue(DistinctCountHLLValueAggregator.java:103)
i wrote a test for my spark app that passes as well to check if deserializing was working and it passed.
val hll = ObjectSerDeUtils.HYPER_LOG_LOG_SER_DE.deserialize(output.head.serializedHll)
hll.cardinality() shouldBe 2