Repository navigation
fix(group): list member names without resolving array codecs - #4693
Draft
grifftatarsky wants to merge 1 commit into
Draft
grifftatarsky wants to merge 1 commit into
grifftatarsky wants to merge 1 commit into
Conversation
This branch has not been deployed
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 #4692.
keys(),array_keys(), andgroup_keys()currently construct every child array, so one unavailable codec prevents even listing subgroup names. The equivalent format 2 fixture lists names successfully with Zarr-Python 2.18.7, but fails with 3.4.2 and current main.Name-only traversal now reads node metadata without resolving codecs or constructing arrays. The sync methods use the async implementation. Immediate member counts use the same path so
list(group)also works through its length hint. Array retrieval and value iterators still raiseUnknownCodecError.For reviewers
The change is limited to immediate name enumeration and counts. Consolidated metadata remains authoritative and listing it performs no storage I/O. Opening consolidated metadata can still require codecs; the user guide documents
use_consolidated=Falsefor inspection when a codec is unavailable. Recursive member traversal and array loading are unchanged.The metadata-only path validates JSON, format, and node type; it does not fully validate array configurations. It preserves warnings for non-Zarr objects and propagates storage errors. PR #4471 proposes removing those warnings; this keeps current main's behavior and can follow that change if it lands first.
Validation
13f4bf58181110d709692d9e35fde59d7776387d; checked the working format 2 behavior in 2.18.7.pytest tests src --ignore=tests/benchmarks -n 4 -q): 14,510 passed, 1,250 skipped, 44 xfailed, no unexpected failures.Author attestation
Draft pending the author's personal review and attestation.
TODO
docs/user-guide/*.mdchanges/