Skip to content

fix: preserve stringdtype in zarr v3 round trips - #11474

Open
stanbot8 wants to merge 1 commit into
pydata:mainfrom
stanbot8:fix/11466-stringdtype-zarr
Open

fix: preserve stringdtype in zarr v3 round trips#11474
stanbot8 wants to merge 1 commit into
pydata:mainfrom
stanbot8:fix/11466-stringdtype-zarr

Conversation

@stanbot8

@stanbot8 stanbot8 commented Jul 25, 2026

Copy link
Copy Markdown

Zarr format 3 round trips lose native NumPy StringDType metadata. The shared string encoder converts native StringDType arrays to fixed-width Unicode before Zarr format 3 stores them.

Preserve native NumPy StringDType for variables, coordinates, and scalars in Zarr format 3 round trips.

Use the compatibility path when StringDType defines na_object.

Closes #11466.

@welcome

welcome Bot commented Jul 25, 2026

Copy link
Copy Markdown

Thank you for opening this pull request! It may take us a few days to respond here, so thank you for being patient.
If you have questions, some answers may be found in our contributing guidelines.

@github-actions github-actions Bot added topic-backends topic-zarr Related to zarr storage library io labels Jul 25, 2026
@stanbot8
stanbot8 force-pushed the fix/11466-stringdtype-zarr branch 3 times, most recently from 0a42250 to 62c3064 Compare July 28, 2026 19:08
@stanbot8 stanbot8 changed the title Preserve StringDType in Zarr v3 round trips test: pin the utf8 fallback for a missing value string dtype Jul 28, 2026
@stanbot8 stanbot8 changed the title test: pin the utf8 fallback for a missing value string dtype Preserve StringDType in Zarr v3 round trips Jul 31, 2026
@stanbot8 stanbot8 changed the title Preserve StringDType in Zarr v3 round trips Fix StringDType not roundtripping through Zarr v3 Jul 31, 2026
@stanbot8
stanbot8 force-pushed the fix/11466-stringdtype-zarr branch from 62c3064 to ae213f0 Compare July 31, 2026 20:27
@stanbot8 stanbot8 changed the title Fix StringDType not roundtripping through Zarr v3 fix: preserve stringdtype in zarr v3 round trips Jul 31, 2026
@stanbot8
stanbot8 force-pushed the fix/11466-stringdtype-zarr branch from ae213f0 to 6e58b84 Compare August 1, 2026 01:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

io topic-backends topic-zarr Related to zarr storage library

Projects

None yet

Development

Successfully merging this pull request may close these issues.

StringDType does not roundtrip through zarr

1 participant