v2.metadata and v3.metadata encode fill_value
bytes differently
#2322
Labels
V3
Affects the v3 branch
Milestone
Here I am creating an array and specifying the fill_value as raw bytes
b'X'
As we can see, the way this fill value is encoded looks quite different from these two. Remarkably, it gets translated back to something reasonable in both cases.
In both cases, the bytes are going through this path:
zarr-python/src/zarr/abc/metadata.py
Lines 33 to 34 in aa46b45
This converts the bytes to a tuple of ints.
However, for v2, #2286 added this additional special handling for fill_value:
zarr-python/src/zarr/core/metadata/v2.py
Lines 146 to 150 in aa46b45
According to the V3 spec:
This seems in line with what is happening.
This is relevant to pydata/xarray#5475
The text was updated successfully, but these errors were encountered: