Repository navigation
fix(streaming): require opt-in for pickle reads - #979
Merged
Merged
Conversation
Dataset metadata selects each leaf decoder. Require explicit trust before loading pickle, including metadata inside packed graphs. Trusted callers can pass allow_pickle=True to read existing data. Co-Authored-By: GPT-6 <noreply@openai.com> Agent-Harness: codex
tchaton
marked this pull request as ready for review
December 1, 2026 14:54
tchaton
requested review from
bhimrazy,
deependujha,
dhedey and
pwgardipee
as code owners
December 1, 2026 14:54
Co-Authored-By: GPT-6 <noreply@openai.com> Agent-Harness: codex
Co-Authored-By: GPT-6 <noreply@openai.com> Agent-Harness: codex
Co-Authored-By: GPT-6 <noreply@openai.com> Agent-Harness: codex
Co-Authored-By: GPT-6 <noreply@openai.com> Agent-Harness: codex
2 tasks done
mysteryyoi
added a commit
to mysteryyoi/PyHealth
that referenced
this pull request
Dec 2, 2026
litdata 0.2.77 (Lightning-AI/litData#979) unpickles values only when the reader passes allow_pickle=True, so reading records with a pickled field (the StageNet LIME tests) fails. Pass it wherever PyHealth opens its own caches, when the installed litdata has the option; older litdata is unchanged.
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.
Before submitting
What does this PR do?
Disable built-in pickle deserialization by default. Readers can pass
allow_pickle=Truefor trusted datasets that use pickle-backed formats, including packed graphs. Update the docs and graph example to show the opt-in.Verification
— GPT-6, via /create-pr; text not reviewed