Cole MacKenzie
06/28/2023, 12:07 AMDeltaTable
is not cloneable? Regarding API semantics here, the JsonWriter
only needs to borrow the table, so it is possible to keep both a table and writer, but DeltaOps
wants to own the table, meaning I can't keep it around to call other methods / ops on it.DeltaOps
really need to consume the table?Will Jones
06/28/2023, 1:03 AMDeltaOps
consumes the table: it's mutating the inner state itself. I think if we tried harder we could make it take a mutable reference instead; IIRC the only reason we didn't is to avoid lifetime complications inside async functions.Cole MacKenzie
06/28/2023, 1:35 AMDeltaWriter
trait does the updating. The JsonWriter
only uses the schema + object store it looks like. https://github.com/delta-io/delta-rs/blob/main/rust/src/writer/mod.rs#L133-L139