Skip to content

Materialize reduced statistics before Beam combines chunks - #340

Open
sylvesterkaczmarek wants to merge 1 commit into
google-research:mainfrom
sylvesterkaczmarek:fix/materialize-beam-aggregates
Open

sylvesterkaczmarek wants to merge 1 commit into
google-research:mainfrom
sylvesterkaczmarek:fix/materialize-beam-aggregates

Conversation

@sylvesterkaczmarek

Copy link
Copy Markdown

Lazy side inputs can introduce Dask graphs into Beam's aggregation results, causing the combiner to retain a growing computation graph.

Compute the reduced numerator and denominator before emitting each chunk, leaving the reusable side inputs untouched.

Fixes #131.

Tests: four targeted tests passed, including a lazy land/sea mask regression that fails on the original code.

Signed-off-by: Sylvester Kaczmarek <16242628+sylvesterkaczmarek@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Side input datasets must be materialized or else memory leaks

1 participant