Re: [External] NullPointerException on accumulator after Checkpointing

2021-07-27 Thread Clemens Valiente
Hi Timo, thanks for the help here, wrapping the MapView in a case class indeed solved the problem. It was not immediately apparent from the documentation that using a MapView as top level accumulator would cause an issue. it seemed a straightforward intuitive way to use it :) Cheers Clemens On

Re: [External] NullPointerException on accumulator after Checkpointing

2021-07-14 Thread Timo Walther
Hi Clemens, first of all can you try to use the MapView within an accumulator POJO class. This might solve your exception. I'm not sure if we support the views as top-level accumulators. In any case this seems to be a bug. I will open an issue once I get you feedback. We might simply throw

[External] NullPointerException on accumulator after Checkpointing

2021-07-13 Thread Clemens Valiente
Hi, we created a new AggregateFunction with Accumulator as Mapview as follows class CountDistinctAggFunction[T] extends AggregateFunction[lang.Integer, MapView[T, lang.Integer]] { override def createAccumulator(): MapView[T, lang.Integer] = { new MapView[T, lang.Integer]() } ... We had