Updating Table log retention configuration with write_deltalake
silently changes nothing
#2108
Labels
enhancement
New feature or request
Environment
Delta-rs version:
python-v0.15.1
Binding:
Same as above
Environment:
Bug
What happened: We have a use case of needing to update our log retention from the default 30 days to 7 days. We already have a set of delta tables made. When testing locally, I wanted to see if an existing delta table could have its log retention updated when the delta table is already in place.
From my testing, changing the
configuration
mapping passed into thewrite_deltalake
between runs silently does nothing.What you expected to happen:
If this is a supported use-case, then I'd expect to see the table's configuration updated when changing the configuration mapping.
If it is not a supported use-case, then I'd expect some kind of Exception.
How to reproduce it:
First, I write a Delta table like so, and then print it's metadata object:
As expected, it prints out a Table metadata object with an empty
configuration
:Then on a second run, on the same table, where the configuration changes and printing the metadata object:
The write gives no indication of a failure but after printing the table, the
configuration
object is empty. It displays the same object as above.The text was updated successfully, but these errors were encountered: