Closed gowrishankarsundersc closed 7 years ago
I realised that Beam itself has this packaged under Sum
transforms and so, tried using it like createAggregator("processed", Sum.ofLongs());
and it is actually work although I am not sure what was different from mine since I am also extending the BinaryCombineFn
. Anyway, the following worked but would definitely like to know the delta which caused the error earlier.
Thanks @gowrishankarsundersc. Indeed, as you observed, aggregators work with a set of pre-defined CombineFn
s only. Glad to see you were able to resolve the issue yourself!
Thanks and let us know if we can help in any way!
I am trying to create a custom aggregator to sum long values similar to
Sum.SumLongFn()
in Dataflow but I am getting the following error. I am also attaching the code I used to create the aggregator. This is on releaseVersion 2.0.0-beta2
and I am running this pipeline on Google Dataflow.Running the same with the
DirectRunner
does not throw this issue although I am not sure if the aggregator even takes effect when running with theDirectRunner