Skip to content

fix: do not materialize before custom pickling#3633

Merged
ianna merged 1 commit intoscikit-hep:mainfrom
ikrommyd:custom-pickler-should-handle-virtual-arrays
Aug 28, 2025
Merged

fix: do not materialize before custom pickling#3633
ianna merged 1 commit intoscikit-hep:mainfrom
ikrommyd:custom-pickler-should-handle-virtual-arrays

Conversation

@ikrommyd
Copy link
Copy Markdown
Collaborator

@ikrommyd ikrommyd commented Aug 28, 2025

In hindsight I’m regretting my decision to materialize for others before pickling using a custom registered pickler. It's the responsibility of the person who's implementing a custom pickler to be able to handle ALL of awkward layouts. It's not awkward's job to materialize for them nor do we want to enforce that. Let other libraries handle virtual arrays if they are implementing a custom pickler (i.e. dask-awkward).

@codecov
Copy link
Copy Markdown

codecov bot commented Aug 28, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 82.65%. Comparing base (b749e49) to head (685f4dc).
⚠️ Report is 410 commits behind head on main.

Additional details and impacted files
Files with missing lines Coverage Δ
src/awkward/highlevel.py 78.57% <100.00%> (+1.90%) ⬆️

... and 196 files with indirect coverage changes

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@github-actions
Copy link
Copy Markdown

The documentation preview is ready to be viewed at http://preview.awkward-array.org.s3-website.us-east-1.amazonaws.com/PR3633

@ianna ianna changed the title revert: We should not be materializing before custom pickling fix: do not materialize before custom pickling Aug 28, 2025
Copy link
Copy Markdown
Member

@ianna ianna left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@ikrommyd - thanks! As discussed at the meeting- it’s good to go. Thanks.

@ianna ianna merged commit ecac51f into scikit-hep:main Aug 28, 2025
48 checks passed
@ikrommyd ikrommyd deleted the custom-pickler-should-handle-virtual-arrays branch August 29, 2025 05:38
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.

2 participants