Commit 531283a
committed
feat(sedona-raster-zarr): async-native cloud storage backends via object_store
ZarrChunkReader now accepts file://, bare paths, s3://, gs:// / gcs://,
az:// / abfs:// / abfss://, and http:// / https://. The reader's
public API is pure-storage-in: hand it an
Arc<dyn AsyncReadableListableStorageTraits> and a group URI (for
chunk-anchor URI formatting) and it walks the chunk grid. Where the
storage came from — registry lookup, env-var-built builder, an
in-memory test fixture — is the caller's concern, not the reader's.
* `open_storage_from_uri(uri, store_override: Option<Arc<dyn ObjectStore>>)`
is the helper for callers that don't already hold a credentialed
store. `Some(store)` uses it directly (with PrefixStore for
s3/gs/az; http(s) is rooted at the URL by its builder). `None`
falls back to per-scheme *Builder::from_env().with_url(uri).build()
— the same env-var credential discovery that read_format's
orchestrated path gets via ensure_object_store_registered_with_options.
file:// and bare paths always go through zarrs_filesystem's
FilesystemStore wrapped in SyncToAsyncStorageAdapter, so the local
backend shows up on the same async storage surface.
* ZarrChunkReader::try_new is async; the sync RecordBatchReader
streaming surface is unchanged since next() is pure CPU.
* No dedicated tokio runtime; async tasks run on whatever runtime
the caller is on (DataFusion's executor for the future SQL UDTF,
an ad-hoc current-thread runtime block_on'd in PyZarrChunkReader::new
for the Python FFI, #[tokio::test] in tests).
* PyZarrChunkReader::new builds storage via open_storage_from_uri
(env-var credentials by default), then drives the async try_new
through a local current-thread tokio runtime. No synthetic
RuntimeEnv, no datafusion-execution dep on the FFI cdylib.
* Replaces Group::child_arrays (which opens every child up front and
errors hard on any per-array metadata failure) with two purpose-
built paths driven by the caller's arrays filter:
- arrays: Some([...]) opens each by name with Array::async_open.
No listing — usable against backends that can't list (plain HTTPS
without WebDAV, S3-via-HttpStore).
- arrays: None lists direct children with storage.list_dir, then
Array::async_open each. Per-array open failures are logged at
warn! and skipped, so a single malformed sibling (e.g. an
xarray-style fixed-length-Unicode coord variable with a null
fill_value that zarrs 0.23 can't open) no longer poisons the
rest of the group.
* zarrs_object_store pinned to 0.5 in the workspace; 0.6 depends on
object_store 0.13, semver-incompatible with DataFusion 52's
object_store 0.12.x.
* Cloud smoke tests pass strictly against the public anonymous
ITS_LIVE v2 ice-velocity datacubes (s3://its-live-data/...). Same
bucket via s3:// (AmazonS3Builder) and via the virtual-hosted
HTTPS URL (HttpStore), with an explicit M11/M12 filter to avoid
listing on the HTTPS path.1 parent 0b45f1d commit 531283a
10 files changed
Lines changed: 521 additions & 179 deletions
File tree
- python/sedonadb-zarr
- src
- rust/sedona-raster-zarr
- src
- tests
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
137 | 137 | | |
138 | 138 | | |
139 | 139 | | |
| 140 | + | |
140 | 141 | | |
141 | 142 | | |
142 | 143 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
29 | 29 | | |
30 | 30 | | |
31 | 31 | | |
| 32 | + | |
32 | 33 | | |
33 | 34 | | |
| 35 | + | |
| 36 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
23 | | - | |
| 23 | + | |
24 | 24 | | |
25 | 25 | | |
| 26 | + | |
26 | 27 | | |
27 | 28 | | |
28 | 29 | | |
29 | | - | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
30 | 33 | | |
31 | 34 | | |
32 | 35 | | |
| |||
39 | 42 | | |
40 | 43 | | |
41 | 44 | | |
42 | | - | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
43 | 63 | | |
44 | 64 | | |
45 | 65 | | |
| |||
70 | 90 | | |
71 | 91 | | |
72 | 92 | | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
73 | 175 | | |
74 | 176 | | |
75 | 177 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
33 | 33 | | |
34 | 34 | | |
35 | 35 | | |
| 36 | + | |
| 37 | + | |
36 | 38 | | |
37 | 39 | | |
38 | 40 | | |
| 41 | + | |
39 | 42 | | |
40 | 43 | | |
41 | 44 | | |
42 | 45 | | |
43 | 46 | | |
44 | | - | |
45 | | - | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
46 | 51 | | |
47 | 52 | | |
| 53 | + | |
48 | 54 | | |
49 | 55 | | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
33 | 33 | | |
34 | 34 | | |
35 | 35 | | |
| 36 | + | |
0 commit comments