-
Notifications
You must be signed in to change notification settings - Fork 407
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
feat(python, rust): cleanup expired logs post-commit hook #2459
feat(python, rust): cleanup expired logs post-commit hook #2459
Conversation
9caad18
to
5699b61
Compare
I am working on resolving conflicts here for a merge |
The copy paste needed for this change really really motivates me to work on the middleware concept more when I'm more fully online 🧟 |
Which copy paste do you mean? |
@ion-elgreco there are a lot of conflicts related to the handling of commit properties and post commit hook behavior that I hope we can consolidate. 🤞 |
5309fe1
to
1a2a323
Compare
Description
This adds the cleanup expired logs post-commit hook. Tables by default have
delta.enableExpiredLogCleanup = true
, anddelta.logRetentionDuration = interval 30 days
. So moving forward those logs will be automatically cleaned up.If users set
delta.enableExpiredLogCleanup = false
during table creation, the log clean up will never be executed in the post-commit. When cleanup_expired_logs in the post-commit hook properties is passed, then that take precedence over the table config.Additionally to most operations you can now pass in Python the PostCommitHookProperties to control the post commit hook, only really needed for advanced use cases, where you want to disable creating checkpoints across the board or override the log clean up.
@Blajda this is a follow up PR of the hooks, will look into creating an auto_vacuum_hook afterwards