Repository navigation
fix: reject malformed auto-cleanup intervals before commit - #11741
Closed
lance-gatefixer[bot] wants to merge 1 commit into
Closed
lance-gatefixer[bot] wants to merge 1 commit into
lance-gatefixer[bot] wants to merge 1 commit into
Conversation
There was a problem hiding this comment.
Claude Code Review
This repository is configured for manual code reviews. Comment @claude review for a one-time review, or @claude review always to subscribe this PR to a review on every future push.
Tip: disable this comment in your organization's Code Review settings.
Contributor
There was a problem hiding this comment.
✅ Gate recommendation: approve.
The validation addresses #11739 before version publication while preserving inherited-value repair and the existing 0 behavior. Focused table and dataset cleanup regressions pass.
Member
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Raw config updates accepted malformed
lance.auto_cleanup.intervalvalues because parsing happened in the best-effort cleanup hook after the new dataset version was published.Validate explicitly supplied intervals as
u64in the Rust config update and overwrite paths, including action transactions, and returnInvalidInputbefore publication. Valid unsigned values (including0), key removal, and writes that inherit a malformed setting remain supported. Regression tests cover version publication, multi-fragment appends, and repairing inherited settings.Fixes #11739.
Validation:
cargo test -p lance-table auto_cleanup --lib— 37 passed.cargo test -p lance auto_cleanup --lib— 20 passed, including the existing cleanup-on-every-commit test for0.cargo fmt --allcargo clippy --all --tests --benches -- -D warningsRelated: #11740 (a draft implementation for the same issue).