-
Notifications
You must be signed in to change notification settings - Fork 416
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
regression : delta.logRetentionDuration don't seems to be respected #2447
Comments
I think the configuration key should be |
same issue |
Correct |
@ion-elgreco delta.logRetentionDuration does not work either ? |
@djouallah it does work, you provided interval 1 day, so you can't expect the logs to be deleted immediately : P, change it to 1 seconds interval and you can see they get removed import polars as pl
from deltalake import DeltaTable, write_deltalake
df = pl.DataFrame({"foo": [1]})
delta_path = "test_Table"
write_deltalake(
delta_path,
df.to_arrow(),
configuration={"delta.logRetentionDuration": "interval 1 seconds"},
mode="overwrite",
)
dt = DeltaTable(delta_path)
dt.vacuum(retention_hours=0, dry_run=False, enforce_retention_duration=False)
dt.create_checkpoint()
dt.cleanup_metadata() |
@djouallah please share the table configuration in the delta log |
|
Yeah, you didn't pass a configuration during creating so it's using the default of 30 days. |
ah, I see it has to be in the first time it was created, adding the option later using append or overwrite does not works, thanks !!! |
Environment
Delta-rs version:
17.1
Binding:
Environment:
Python
Bug
What happened:
don't seems to be working ?
The text was updated successfully, but these errors were encountered: