You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Update to icechunk alpha 8
* Update some docs
* Update release notes
* Add datetime checksum functionality to icechunk writer
* Add test for checksum that fails
* Add workign test for checksums
* Fix typing
* Breakout checksum functionality to its own test
* Docstrings
* Update docs a bit
* Update virtualizarr/accessor.py
Co-authored-by: Tom Nicholas <[email protected]>
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
* Add test case for invalid `last_updated_at`
* Add note about precision of `last_udpated_at
* Fix typing
* Typing
* Ignore zarr import errors at project level
* Update docs
---------
Co-authored-by: Tom Nicholas <[email protected]>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Copy file name to clipboardExpand all lines: docs/usage.md
+10-8Lines changed: 10 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -421,14 +421,16 @@ By default references are placed in separate parquet file when the total number
421
421
We can also write these references out as an [IcechunkStore](https://icechunk.io/). `Icechunk` is a Open-source, cloud-native transactional tensor storage engine that is compatible with zarr version 3. To export our virtual dataset to an `Icechunk` Store, we simply use the {py:meth}`vds.virtualize.to_icechunk <virtualizarr.VirtualiZarrDatasetAccessor.to_icechunk>` accessor method.
422
422
423
423
```python
424
-
# create an icechunk store
425
-
from icechunk import IcechunkStore, StorageConfig, StoreConfig, VirtualRefConfig
If `append_dim` is provided, the virtual dataset will be appended to the existing IcechunkStore along the `append_dim` dimension.
50
54
55
+
If `last_updated_at` is provided, it will be used as a checksum for any virtual chunks written to the store with this operation.
56
+
At read time, if any of the virtual chunks have been updated since this provided datetime, an error will be raised.
57
+
This protects against reading outdated virtual chunks that have been updated since the last read. When not provided, no check is performed.
58
+
This value is stored in Icechunk with seconds precision, so be sure to take that into account when providing this value.
59
+
51
60
Parameters
52
61
----------
53
62
store: IcechunkStore
54
63
append_dim: str, optional
64
+
When provided, specifies the dimension along which to append the virtual dataset.
65
+
last_updated_at: datetime, optional
66
+
When provided, uses provided datetime as a checksum for any virtual chunks written to the store with this operation.
67
+
When not provided (default), no check is performed.
68
+
69
+
Examples
70
+
--------
71
+
To ensure an error is raised if the files containing referenced virtual chunks are modified at any time from now on, pass the current time to ``last_updated_at``.
0 commit comments