FlinkStateInternals assumes that null value for accumulator means that the accumulator was never created
- Dominant language
- Java
- Stars
- 8.7k
- Forks
- 4.7k
- Avg merge
- 1d 20h
- Merged PRs (30d)
- 196
Description
FlinkStateInternals assumes that null value for accumulator means that the accumulator was never created. There are combiners which have non-null values returned by createAccumulator but null values after merging.
It would be good to have a ValidatesRunner test that covers an accumulator with a null final value and non-null initial value.
Code link:
https://github.com/apache/beam/blob/v2.24.0/runners/flink/src/main/java/org/apache/beam/runners/flink/translation/wrappers/streaming/state/FlinkStateInternals.java#L507
Imported from Jira [BEAM-11063](https://issues.apache.org/jira/browse/BEAM-11063). Original Jira may contain additional context.
Reported by: lcwik.
Contributor guide
Assessment
This issue has not been assessed yet.