Repository navigation
Harden sharded Zarr v3 writes, format checks, and partial end shards - #211
Open
copybara-service[bot] wants to merge 1 commit into
Open
copybara-service[bot] wants to merge 1 commit into
copybara-service[bot] wants to merge 1 commit into
Conversation
- Clear stale `shards` encodings (and `fill_value` for Zarr v2) during store setup. - Default `zarr_format=3` when `zarr_shards` is set and eagerly reject `zarr_format != 3`. - Round up full-dimension shard sizes to chunk multiples in `_finalize_setup_zarr_args` and `Dataset.to_zarr`. - Pass `safe_chunks=False` in `write_chunk_to_zarr` so valid trailing partial shards (including lengths not divisible by inner chunk sizes, such as `lat=721` with `shards=405` and trailing length `316`) write without false alignment errors. PiperOrigin-RevId: 1032923670
|
Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA). View this failed invocation of the CLA check for more information. For the most up to date status, view the checks section at the bottom of the pull request. |
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.
Harden sharded Zarr v3 writes, format checks, and partial end shards
shardsencodings (andfill_valuefor Zarr v2) during store setup.zarr_format=3whenzarr_shardsis set and eagerly rejectzarr_format != 3._finalize_setup_zarr_argsandDataset.to_zarr.safe_chunks=Falseinwrite_chunk_to_zarrso valid trailing partial shards (including lengths not divisible by inner chunk sizes, such aslat=721withshards=405and trailing length316) write without false alignment errors.