Skip to content

da.to_zarr 2026.1.2 not backwards compatible with dask<2025.12.0 with zarr_format keyword arg and component #12265

Closed

Description

@joshua-gould
import dask.array as da

# Group.create_array() got an unexpected keyword argument 'zarr_format'
# works with dask<2025.12.0
# fails with 2026.1.2
da.to_zarr(
    arr=da.random.random((2, 2)),
    url="test1.zarr",
    zarr_format=2,
    component="0",
)

# works with dask<2025.12.0 and 2026.1.2
da.to_zarr(
    arr=da.random.random((2, 2)),
    url="test2.zarr",
    zarr_format=2,
)

Environment:

  • Dask version: 2026.1.2
  • Install method: pip

Activity

  1. added
    needs triage
    on Feb 2, 2026
  2. changed the title [-]da.to_zarr 2026.1.2 not backwards compatible with dask<2025.12.0 with zarr_format keyword arg[/-] [+]da.to_zarr 2026.1.2 not backwards compatible with dask<2025.12.0 with zarr_format keyword arg and component[/+] on Feb 2, 2026
  3. joshua-gould commented on Feb 2, 2026

    @joshua-gould
    Author

    Not that dask==2026.1.1 is also not backwards compatible with dask<2025.12.0-code runs but zarr_format parameter is ignored

  4. abslock128w commented on Feb 5, 2026

    @abslock128w
    Contributor

    Hey I'd like to have a look at this...

  5. TomAugspurger commented on Feb 8, 2026

    @TomAugspurger
    Member
  6. melonora commented on Feb 8, 2026

    @melonora
    Contributor

    The reason here is the zarr API, zarr.create is getting deprecated and now Group.create_array is used which does not have the zarr_format argument. There is no equivalent, unless we switch to zarr.create_array instead. which is what Group.create_array is lightly wrapping.

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    needs triage

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions