File tree Expand file tree Collapse file tree 6 files changed +27
-3
lines changed Expand file tree Collapse file tree 6 files changed +27
-3
lines changed Original file line number Diff line number Diff line change @@ -56,8 +56,8 @@ docs = [
5656 " scipy" ,
5757 " cftime" ,
5858 " pooch" ,
59- " dask>=2024.11.0,<2025.04.0 " ,
60- " distributed>=2024.11.0,<2025.04.0 " ,
59+ " dask>=2024.11.0" ,
60+ " distributed>=2024.11.0" ,
6161 " xarray>=2025.01.2" ,
6262 " myst_nb" ,
6363 " pydata_sphinx_theme" ,
@@ -81,7 +81,7 @@ docs = [
8181 " sphinx_copybutton" ,
8282 " sphinx_design" ,
8383 " sphinx_togglebutton" ,
84- " sphinx-autodoc-typehints"
84+ " sphinx-autodoc-typehints" ,
8585]
8686
8787[dependency-groups ]
Original file line number Diff line number Diff line change @@ -1243,6 +1243,8 @@ class PyStore:
12431243 @property
12441244 def supports_writes (self ) -> bool : ...
12451245 @property
1246+ def supports_consolidated_metadata (self ) -> bool : ...
1247+ @property
12461248 def supports_deletes (self ) -> bool : ...
12471249 async def set (self , key : str , value : bytes ) -> None : ...
12481250 async def set_if_not_exists (self , key : str , value : bytes ) -> None : ...
Original file line number Diff line number Diff line change @@ -320,6 +320,10 @@ def supports_listing(self) -> bool:
320320 """Does the store support listing?"""
321321 return self ._store .supports_listing
322322
323+ @property
324+ def supports_consolidated_metadata (self ) -> bool :
325+ return self ._store .supports_consolidated_metadata
326+
323327 @property
324328 def supports_deletes (self ) -> bool :
325329 return self ._store .supports_deletes
Original file line number Diff line number Diff line change @@ -246,6 +246,12 @@ impl PyStore {
246246 } )
247247 }
248248
249+ #[ getter]
250+ fn supports_consolidated_metadata ( & self ) -> PyIcechunkStoreResult < bool > {
251+ let supports = self . 0 . supports_consolidated_metadata ( ) ?;
252+ Ok ( supports)
253+ }
254+
249255 #[ getter]
250256 fn supports_deletes ( & self ) -> PyIcechunkStoreResult < bool > {
251257 let supports_deletes = self . 0 . supports_deletes ( ) ?;
Original file line number Diff line number Diff line change @@ -67,3 +67,10 @@ async def test_support_dimension_names_null() -> None:
6767 (await store .get ("0/zarr.json" , prototype = default_buffer_prototype ())).to_bytes ()
6868 )
6969 assert "dimension_names" not in meta
70+
71+
72+ def test_doesnt_support_consolidated_metadata () -> None :
73+ repo = parse_repo ("memory" , "test" )
74+ session = repo .writable_session ("main" )
75+ store = session .store
76+ assert not store .supports_consolidated_metadata
Original file line number Diff line number Diff line change @@ -271,6 +271,11 @@ impl Store {
271271 Ok ( true )
272272 }
273273
274+ #[ instrument( skip_all) ]
275+ pub fn supports_consolidated_metadata ( & self ) -> StoreResult < bool > {
276+ Ok ( false )
277+ }
278+
274279 #[ instrument( skip_all) ]
275280 pub fn supports_deletes ( & self ) -> StoreResult < bool > {
276281 Ok ( true )
You can’t perform that action at this time.
0 commit comments