Don't ensure_table_uri
when creating a table with_log_store
#2036
Labels
ensure_table_uri
when creating a table with_log_store
#2036
Description
Currently when a
CreateBuilder
is provided with a log store, it will try to create a URL from it's root (viaensure_table_uri
), and then re-convert that to aString
delta-rs/crates/deltalake-core/src/operations/create.rs
Lines 222 to 226 in 9264ede
Besides potentially create missing dirs in the case of local FS, I don't think this round trip is actually needed in other cases (e.g. cloud URLs).
The issue this leads to for us is that
ensure_table_uri
in turn callsresolve_uri_type
, which errors out if the URL scheme is not for one of the registered object store factories.Use Case
I'd like to be able to use
with_log_store
on theCreateBuilder
without having to register an object store factory beforehand.In other words I'd like to be able to re-use the object/log store that I keep an
Arc
to without re-creating one from scratch every time.Related Issue(s)
The text was updated successfully, but these errors were encountered: