zarr-specs icon indicating copy to clipboard operation
zarr-specs copied to clipboard

Can fallback data types have fallbacks?

Open clbarnes opened this issue 2 years ago • 2 comments

The spec currently allows fallback data types to either be core or extension data types, but disallows the "fallback" field in an extension data type object. If fallbacks are not limited to core types, why not allow further fallbacks?

clbarnes avatar May 10 '23 10:05 clbarnes

The spec does say that fallback may be a list of data types: https://github.com/zarr-developers/zarr-specs/blob/cdf97c94d9e6f13dc820a0cd604cc8f9b0d61d03/docs/v3/core/v3.0.rst?plain=1#L494

Note though, that in regard to fallback data types, there is an outstanding issue of how to deal with the fill value: https://github.com/zarr-developers/zarr-specs/pull/236#issuecomment-1539188066

jbms avatar May 10 '23 18:05 jbms

Ah, my fault for missing that! I suppose it's just an API decision of a single recursive approach or two very similar APIs.

clbarnes avatar May 10 '23 19:05 clbarnes