FundingCircle / jackdaw

A Clojure library for the Apache Kafka distributed streaming platform.
https://fundingcircle.github.io/jackdaw/
BSD 3-Clause "New" or "Revised" License
369 stars 80 forks source link

AbstractMethodError with 5-arity kgroupedstream aggregate function #210

Open focusaurus opened 4 years ago

focusaurus commented 4 years ago

If I put the 5-arg version of this into my topology:

(j/aggregate groupedstream tree-agg-init tree-agg-add tree-agg-subtract agg-topic)

I get an exception:

Execution error (AbstractMethodError) at jackdaw.streams/aggregate (streams.clj:260).
jackdaw.streams.interop.CljKGroupedStream.aggregate(Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

I believe that although a 5-arity version is defined in streams.clj here, there's no corresponding interop for it here

My workaround is not to pass the subtractor fn arg which is the 4-arity flavor which works OK.