https://delta.io logo
t

Tobias

06/22/2023, 12:22 PM
Hello delta-rs community In the deltatable library we have the restoreToVersion method to roll-back changes (https://delta.io/blog/2022-10-03-rollback-delta-lake-restore/). In delta-rs this does not (yet) exist. To rollback the changes we could obviously query for version t-1 and write (with overwrite) that version to the same table. Are there other perhaps more efficient solutions to this, or would this currently be the way to go in delta-rs?
r

Robert

06/22/2023, 1:03 PM
this should be doable as a metadata only operation. i.e. get all the active files for desired version, find all files added/removed between then and now. add files that have been removed, remove files that have been added ….
right now this could be done using low level apis, but would obviously nicer to have that wrapped in an operation …
m

Matthew Powers

06/22/2023, 3:38 PM
Would be great for someone to grab this issue. Would love this functionality.
u

邓凯

06/29/2023, 10:48 AM
I've already file a PR about this. Please review.
Already merged and python binding coming soon.