Skip to content

Conversation

@rabernat
Copy link
Contributor

@rabernat rabernat commented Dec 3, 2025

Implementation of arrow-ipc Array Bytes codec proposed in zarr-developers/zarr-extensions#41

TODO:

  • Add unit tests and/or doctests in docstrings
  • Add docstrings and API docs for any new/modified user-facing classes and functions
  • New/modified features documented in docs/user-guide/*.md
  • Changes documented as a new file in changes/
  • GitHub Actions have all passed
  • Test coverage is 100% (Codecov passes)

@github-actions github-actions bot added the needs release notes Automatically applied to PRs which haven't added release notes label Dec 3, 2025
if isinstance(dtype, VariableLengthUTF8) and codec_class_name not in (
"VLenUTF8Codec",
"ArrowIPCCodec",
): # type: ignore[unreachable]
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This change allows us to use either the vlen-bytes or the arrow-ipc codec to encode variable length strings.

Flagging that this sort of logic for mapping codec / dtype compatibility feels quite brittle and non-scalable. But I don't have a better proposal in mind.

Copy link
Contributor

Choose a reason for hiding this comment

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

i feel the same way! we might need a dtype x codecs compatibility matrix, not sure if it should track compatibility or incompatibility

@rabernat
Copy link
Contributor Author

rabernat commented Dec 3, 2025

@d-v-b - resolving the typing errors here is beyond my ability. Would appreciate your help. 🙏

@d-v-b
Copy link
Contributor

d-v-b commented Dec 4, 2025

ci is passing via 96273a8

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

needs release notes Automatically applied to PRs which haven't added release notes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants