feat: add lazy cache blob types (arrow, npy)#9035
Merged
dmadisetti merged 8 commits intomainfrom Apr 15, 2026
Merged
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Contributor
There was a problem hiding this comment.
Pull request overview
This PR fixes lazy-cache restore behavior so missing blob references don’t stall execution, and extends lazy-cache blob serialization to support format-aware storage (NumPy and Arrow) in addition to pickle.
Changes:
- Update lazy loader restore path to parallelize blob reads with explicit “missing blob” signaling.
- Introduce format registries for blob serialization/deserialization (pickle / “npz” / Arrow) plus per-item
type_hintmetadata. - Add round-trip tests for NumPy, polars, and pandas cached values.
Reviewed changes
Copilot reviewed 5 out of 5 changed files in this pull request and generated 7 comments.
Show a summary per file
| File | Description |
|---|---|
marimo/_save/loaders/lazy.py |
Adds loader-strategy resolution, format-aware blob (de)serialization, and updated parallel restore behavior. |
marimo/_save/stubs/lazy_stub.py |
Defines loader-strategy registry and blob serializer/deserializer registries; adds type_hint to manifest schema. |
marimo/_save/stubs/stubs.py |
Extracts shared mro_lookup() helper for MRO-based registry lookups. |
marimo/_save/stubs/__init__.py |
Rewires stub registration to use mro_lookup() and re-exports relevant symbols. |
tests/_save/loaders/test_loader.py |
Adds format round-trip tests for numpy/polars/pandas lazy-cache storage. |
mscolnick
previously approved these changes
Apr 13, 2026
mscolnick
approved these changes
Apr 15, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
📝 Summary
Fixes a bug where a lazy cache blob miss blocked execution. Additionally adds
arrowandnpzformats overpicklefor type relevant storage.