Skip to content

Conversation

@xuzifu666
Copy link
Member

Purpose

Linked issue: close #xxx
Currently Paimon cannot clear data from table rightly, truncate would do a overwrite snapshot and clear data\manifest... after snapshot expire, but user sometime need clear data quickly to reduce storage pressure, so add a purge command to clear data quickly.

Tests

PaimonPurgeTableTestBase

API and Format

Documentation

@xuzifu666 xuzifu666 changed the title Purge table [spark] Add purge table command to clear data Dec 14, 2024
@JingsongLi
Copy link
Contributor

Can you find some similar examples? For example, from other lake formats

@xuzifu666
Copy link
Member Author

xuzifu666 commented Dec 16, 2024

Can you find some similar examples? For example, from other lake formats

Hudi truncate table would clear metadata and data directly; iceberg would do like paimon. In some env user want to delete all data quickly only need keep schema info, so add the command. @JingsongLi

@JingsongLi
Copy link
Contributor

After offline discussing with @xuzifu666 , we can provide a procedure: purge_files.

@xuzifu666
Copy link
Member Author

link this pr to: #4717 and close it first.

@xuzifu666 xuzifu666 closed this Dec 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants