Skip to content

Conversation

@chenjian2664
Copy link
Contributor

@chenjian2664 chenjian2664 commented Feb 3, 2025

Description

Close #24872

Release notes

## Delta Lake
* Fix incorrect behavior that `vacuum` procedure deletes unexpected files when the path contains special characters. ({issue}`24872`)

@cla-bot cla-bot bot added the cla-signed label Feb 3, 2025
@github-actions github-actions bot added the delta-lake Delta Lake connector label Feb 3, 2025
@ebyhr
Copy link
Member

ebyhr commented Feb 3, 2025

The commit body is too long. Could you follow the following guideline?

https://trino.io/development/process#pull-request-and-commit-guidelines-

Wrap the body at 72 characters.

@ebyhr
Copy link
Member

ebyhr commented Feb 3, 2025

/test-with-secrets sha=e24788ea3bd117b8b678473b35bb491c6eeb4ae1

@github-actions
Copy link

github-actions bot commented Feb 3, 2025

The CI workflow run with tests that require additional secrets finished as failure: https://github.com/trinodb/trino/actions/runs/13106773501

When a Delta Lake file path contains whitespace, the VACUUM procedure
unexpectedly removes it. This commit fixes the issue by wrapping the
file path using RFC 2396 URI encoding, ensuring consistency with how
file paths are handled when writing add or remove entries
@ebyhr ebyhr merged commit 80af688 into trinodb:master Feb 3, 2025
2 of 12 checks passed
@github-actions github-actions bot added this to the 470 milestone Feb 3, 2025
@chenjian2664 chenjian2664 deleted the fix_delta_vac branch February 3, 2025 06:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cla-signed delta-lake Delta Lake connector

Development

Successfully merging this pull request may close these issues.

VACUUM procedure deletes unexpected files when the path contains special characters in Delta Lake

2 participants