Replies: 1 comment
-
I've read a bit more and my understanding is that an "Stores are registered based on the scheme, host and port of the provided URL with a Is my understanding correct? Is there some way I can work around this for my use case? |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm building a WASM module in Rust using DataFusion that needs to read JSON files from a directory shared by the host via WASI. The host (using wasmtime) pre-opens a directory using WasiCtxBuilder, but DataFusion's ListingTableUrl fails to access it with error:
No suitable object store found for file:///sources/
.Host code
sources is located under data (data/sources)
Running the code returns: Error inferring schema: Internal error: No suitable object store found for file:///sources/. See
RuntimeEnv::register_object_store
.I can't use the
object_store
crate because it won't build withcargo component build
which is need forwasm32-wasip1
I have the code working in "native" Rust.
Does DataFusion's file access work differently when running in WASM vs native Rust?
Is there a specific way to configure DataFusion's object store system for WASI environments?
Does the file path mapping between host and WASM environment need special handling?
Do I need to implement
object_store
for thewasi
file access? If yes, how would I do that?Beta Was this translation helpful? Give feedback.
All reactions