delta-rs icon indicating copy to clipboard operation
delta-rs copied to clipboard

store userMetadata on write operations

Open resulyrt93 opened this issue 1 year ago • 2 comments

Description

With spark deltalake we can store userMetadata with write operations, thus we can access them in delta history. It can be an arbitrary json data. Is there a way to store it with delta-rs python binding? Doc link

Use Case In our case, we want to store user data with write operation to match transaction with user.

Related Issue(s) https://github.com/delta-io/delta-rs/issues/133

resulyrt93 avatar Dec 22 '23 09:12 resulyrt93

Should be trivial to expose, I can take a look at it after new years eve

ion-elgreco avatar Dec 22 '23 21:12 ion-elgreco

Can userMetadata be added to app_metadata before being passed to commit (unless it is already the same thing and just needs to be exposed to Python)? Adding a new parameter to commit would touch many operations. I am working on https://github.com/delta-io/delta-rs/issues/1957 so can also look into this after I'm done there

r3stl355 avatar Dec 26 '23 18:12 r3stl355

this is exactly what we need.
+1

cekicbaris avatar Dec 27 '23 19:12 cekicbaris

@r3stl355 it's the same thing, see my PR: https://github.com/delta-io/delta-rs/pull/1994

image

ion-elgreco avatar Dec 27 '23 20:12 ion-elgreco

cool, so this doesn't touch Rust at all, nice

r3stl355 avatar Dec 27 '23 21:12 r3stl355