You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Reuse an operator's output storage across region re-executions #5709
When a region re-executes, RegionExecutionCoordinator recreates each operator's iceberg output and state documents. An operator whose output accumulates across runs — e.g. a loop body that re-executes once per iteration — needs its existing storage preserved instead of clobbered on every region invocation. There is currently no way for an operator to opt into reusing its output storage across re-executions.
Proposed Solution or Design
Add a reusesOutputStorageOnReExecution: Boolean = false field to PhysicalOp plus a withReusesOutputStorageOnReExecution builder.
Add a pure provisionOutputDocument(uri, reuseExistingStorage, documentExists, createDocument) decision function in RegionExecutionCoordinator: when the owning operator sets the flag and the document already exists, reuse it; otherwise (re)create. Unit-test the reuse×exists matrix.
Name the flag for the behavior the scheduler checks, not the operator that sets it, so any future operator needing the same treatment can opt in.
Default false keeps every existing operator recreating its storage as before (no behavior change). The for-loop feature sets the flag on Loop End.
It looks like the issue description doesn't quite follow our template yet:
The Task Summary section is missing; please keep the template's headings.
Filling out the template helps reviewers understand and triage your contribution faster. Please edit the description to complete it. This message will disappear automatically once the template is followed.
You can find the template prompts by editing the description, or see CONTRIBUTING.md for the full contribution flow.
Activity
github-actions commentedon Jun 14, 2026
👋 Thanks for opening this issue, @aglinxinyuan!
It looks like the issue description doesn't quite follow our template yet:
Filling out the template helps reviewers understand and triage your contribution faster. Please edit the description to complete it. This message will disappear automatically once the template is followed.
You can find the template prompts by editing the description, or see CONTRIBUTING.md for the full contribution flow.
feat(scheduling): reuse output storage across region re-executions (a…
feat(scheduling): reuse output storage across region re-executions (a…