Skip to content

Enforce rechunking for sharded Icechunk store#897

Merged
tomwhite merged 4 commits intocubed-dev:mainfrom
claxn:icechunk-sharding
May 5, 2026
Merged

Enforce rechunking for sharded Icechunk store#897
tomwhite merged 4 commits intocubed-dev:mainfrom
claxn:icechunk-sharding

Conversation

@claxn
Copy link
Copy Markdown
Contributor

@claxn claxn commented Apr 20, 2026

This PR solves issue #896 by enforcing a rechunking of the input array, if the output store is sharded and the input chunks do not match the shards.

Should we add a warning to notify the users that there is a mismatch of cubed chunks and Zarr shards?

@tomwhite
Copy link
Copy Markdown
Member

Should we add a warning to notify the users that there is a mismatch of cubed chunks and Zarr shards?

That would be good.

@claxn
Copy link
Copy Markdown
Contributor Author

claxn commented May 3, 2026

@tomwhite sorry for my delayed changes. Could you please check if everything looks good to you? I moved the rechunking to a central place in _store_array, so that it covers now all cases, including to_zarr and store_icechunk.

Copy link
Copy Markdown
Member

@tomwhite tomwhite left a comment

Choose a reason for hiding this comment

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

This looks good to me!

The failures are due to Zarr changes which are unrelated to this, but would you mind rebasing to rerun the tests please?

@claxn claxn force-pushed the icechunk-sharding branch from ba699d1 to 0ad9b69 Compare May 5, 2026 12:22
@claxn
Copy link
Copy Markdown
Contributor Author

claxn commented May 5, 2026

@tomwhite great, thanks for approving! I rebased - hopefully the tests are successful now.

@claxn
Copy link
Copy Markdown
Contributor Author

claxn commented May 5, 2026

@tomwhite let me try to fix the remaining issues, they did not appear in my local branch.

@tomwhite tomwhite merged commit 239c606 into cubed-dev:main May 5, 2026
21 of 22 checks passed
@tomwhite
Copy link
Copy Markdown
Member

tomwhite commented May 5, 2026

Thanks @claxn!

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