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
FileExistsError on re-run — memory backend refuses to overwrite existing results #72
When re-running a pipeline that already produced intermediate results, the memory backend (polystore/memory.py:74) raises FileExistsError because it does not allow saving to a path that already exists.
Steps to reproduce:
Run any pipeline that saves results (e.g., positions_step1.pkl)
Run the same pipeline again without deleting the output directory
Error:
FileExistsError: Path already exists: .../R02C02_positions_step1.pkl
Expected behavior: The pipeline should either overwrite existing files on re-run, or there should be a documented way to clear/override previous outputs.
Suggested fix: Add an overwrite parameter to the memory backend's save method (similar to how disk.py and zarr.py handle it), and pass it through from filemanager.py.
Verified fixed on current main at the materialization policy owner. MaterializationSpec defaults to WriteMode.OVERWRITE; BackendSaver applies OverwritePathPolicy and deletes the existing backend path before saving. WriteMode.ERROR remains available when refusal is intended. Draft PR #99 adds the exact memory-backend rerun regression and proves the second result replaces the first.
Activity
trissim commentedon Aug 1, 2026
Verified fixed on current
mainat the materialization policy owner.MaterializationSpecdefaults toWriteMode.OVERWRITE;BackendSaverappliesOverwritePathPolicyand deletes the existing backend path before saving.WriteMode.ERRORremains available when refusal is intended. Draft PR #99 adds the exact memory-backend rerun regression and proves the second result replaces the first.Closing as completed.