Skip to content
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

fix: update cleanup regex to include checkpoint.parquet files #1421

Merged
merged 3 commits into from
Jun 2, 2023

Conversation

cmackenzie1
Copy link
Contributor

Description

Update cleanup regex to include checkpoint.parquet files

Related Issue(s)

Documentation

https://regex101.com/r/OmoZMz/2

@github-actions github-actions bot added binding/rust Issues for the Rust crate rust labels Jun 1, 2023
@cmackenzie1
Copy link
Contributor Author

cmackenzie1 commented Jun 1, 2023

  • Test case for table w/o checkpoint
  • Test case for table w/ checkpoint as current version

Previously, if a table had no new commits but log_retention_expiry
lapsed for the latest commit or checkpoint file, the file would be
removed leaving the table in a corrupted state.

To prevent this, cleanup_metadata should only run with `current_version`
equal to the table states current version. For example, `cleanup_metadata`
for v10 would only touch files for v0-v9.
@rtyler rtyler merged commit fa96a5a into delta-io:main Jun 2, 2023
@cmackenzie1 cmackenzie1 deleted the cole/issue-1420 branch June 2, 2023 04:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
binding/rust Issues for the Rust crate rust
Projects
None yet
Development

Successfully merging this pull request may close these issues.

cleanup_metadata doesn't remove .checkpoint.parquet files
2 participants